body {
 margin: 0;
 padding: 0;
 font-family: 'Arial', serif;
}
h1 {
  text-align: center;
}
a {
  color:#215934;
}
.top {
  margin: 0;
  background-color: #fdece5;
  padding-top:20px;
  padding-bottom:20px;
  padding-left:10px;
  padding-right:10px;
}
.bottom {
  margin: 0;
  padding-left:10px;
  padding-right:10px;
}
.table {
  margin: 0;
  /*padding: 10px;*/
  background-color: inherit;
}
.table a{
  text-decoration: none;
}
.tablecell a:hover{
  text-decoration: underline;
}
.newsletter{
  padding:10px;
  background-color:#ffffff;
  box-sizing: border-box;
}
.summary{
  border : 1px solid #215934;
  border-radius: 3px;
  padding: 5px;
  padding-left: 60px;
  height:65px;
  margin-top: 5px;
  margin-bottom: 5px;
  background-repeat: no-repeat;
  background-position: 5px 5px;
}
.summary h2{
  font-size:1.3em;
  margin:0;
  padding:none;
}

.article {
  margin:auto;
  padding: 10px;
  max-width:800px;
  margin-bottom:40px;
}
.rectangle {
  aspect-ratio: 16 / 9;
  background-color:  #fdece5;
  background-size: cover;
  background-repeat: no-repeat; /* Optional, prevents tiling */
  background-position: center center;
  background-image: url("https://graemetuffnell.com/images/featured/live-500-min.webp");
  position:relative;
}
.rectangleinner {
  position:absolute;
  text-align: center;
  /*
  text-indent: 45%;
  */
  width:100%;
  height:40px;
  line-height:40px;
  bottom: 15%;
  background: rgba(255, 255, 255, .4);
}

.playbtn {
  display:inline-block;
  padding:10px;
  background-color: #215934;
  border-radius: 3px;
  color:#ffffff;
  text-decoration: none;
}
.playbtn:hover{
  background-color: red;
}

.practicesection{
  background-image: url("https://graemetuffnell.com/images/home/expand-icon.jpg");
  background-size: 30px;
  background-position: right 20px center;
  background-repeat: no-repeat;

  padding:5px;
  background-color:#fdece5;
  margin-bottom:5px;
  cursor: pointer;
}
.practicesectioncontent{
  display:none;
}

.grid {
  display: grid;
  /*
  grid-template-columns: repeat(2);
  grid-template-rows: repeat(2);
  */
  width: 100%;
  aspect-ratio: 1 / 1;
  grid-gap: 5px;
  margin-bottom:80px;
}

.grid-item{
    cursor:pointer;
    position:relative;
    background-size: cover;
    background-position: center;
}

.grid-item-desc{
  position: absolute;
  bottom:0;
  left:0;
  width:100%;
  height:30px;
  line-height: 30px;
  background-color: rgba(255, 255, 255, 0.5);
  text-align: center;

}
.grid-item-desc a{
  text-decoration: none;
}
.grid-item-desc a:hover{
  text-decoration: underline;
}

.grid-item1 {
    background-image: url("gallery/images/bridge-card-game-livestream.webp");
    grid-column: 1/3;
    grid-row: 1/1;
}

.grid-item2 {
    background-image: url("gallery/images/graeme-chisa-copenhagen.webp");
    grid-column: 3/4;
    grid-row: 1/1;
}

.grid-item3 {
    background-image: url("gallery/images/apbf-score-up.webp");
    grid-column: 1/2;
    grid-row: 2/4;
}

.grid-item4 {
    background-image: url("gallery/images/4.webp");
    grid-column: 2/4;
    grid-row: 2/3;
}

.grid-item5 {
    background-image: url("gallery/images/non-vulnerable-fun.webp");
    grid-column: 2/3;
    grid-row: 3/4;
}

.grid-item6 {
    background-image: url("gallery/images/herning-captains.webp");
    grid-column: 3/4;
    grid-row: 3/4;
}

.grid-item7 {
    background-image: url("gallery/images/apbf-jan.webp");
    grid-column: 1/2;
    grid-row: 4/5;
}

.grid-item8 {
    background-image: url("gallery/images/safety-first.webp");
    grid-column: 2/4;
    grid-row: 4/5;
}


.internalsection{
  margin: auto;
  max-width: 400px;
}

@media screen and (min-width: 800px) {
  .rectangle {
    background-image: url("https://graemetuffnell.com/images/featured/live-800-min.webp");
  }
  .rectangleinner {
    font-size: 1.2em;
  }
}
@media screen and (min-width: 1000px) {
  .rectangle {
    background-image: url("https://graemetuffnell.com/images/featured/live-1000-min.webp");
  }
  .rectangleinner {
    font-size: 1.4em;
  }
  .internalsection{
    max-width: 800px;
  }
 .table {
   /*
   margin-left: -20px;
   width: calc(100% + 40px);
   */
   width:100%;
   display: table;
   table-layout: fixed;
   /*border-spacing: 20px;*/
   border-spacing: 0px;
 }
 .tablecell {
   display: table-cell;
   vertical-align:top;
 }
}
