* {
	margin: 0;
	padding: 0;
}
body {
	width: 100%;
    background-color:#d7dbb9;
}
a {
	color:#6d6e72;
	outline: none;
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
}
p {
	margin: 0 0 18px
}
img {
	border: none;
}
input {
	vertical-align: middle;
}
#wrapper {
	width: 1000px;
	margin: 0 auto;
}


/* Header
-----------------------------------------------------------------------------*/
#header {
	height: 155px;
    background-color:#d0ebff;
}

/* Menu
-----------------------------------------------------------------------------*/
.menu {
	height: 25px;
    background-color:#555d72;
    padding:5px 0 0 0;
    text-align:center;
    font-size:16px;
}

.menu ul {
   list-style-type:none;
margin:0;
padding:0;
}

.menu ul li {
  display:inline;
   color:#ffffff;
   font-family:Trebuchet MS, tahoma, arial, helvetica;
   margin:0 18px 0 0;
}

.menu ul li a {
  color:#ffffff;
  text-decoration:none;
  padding:5px 8px;
}

.menu ul li a:hover {
  background-color:#639dcf;
  text-decoration:none;
}

.menu ul li.on {
  color:#ffffff;
  padding:5px 8px;
  background-color:#639dcf;
  margin:0 18px 0 0;
}

/* Banner
-----------------------------------------------------------------------------*/
#banner {
	height: 238px;
}

/* Strapline
-----------------------------------------------------------------------------*/
#strapline {
	height: 55px;
    background-color:#9fa75e;
}


/* Middle
-----------------------------------------------------------------------------*/
#middle {
	border-right: 425px solid #ffffff;
	height: 1%;
	position: relative;
    background:#ffffff;
}
#middle:after {
	content: '';
	clear: both;
	display: table;
}
#container {
	width: 100%;
	float: left;
	overflow: hidden;
	margin-right: -100%;
    padding-top:40px;
    background-color:#ffffff;
}
#content {
	padding: 0 30px 0 110px;
}

#content p {
	font-family:Trebuchet MS, tahoma, arial, helvetica;
    color:#6d6e72;
    font-size:14px;
    line-height:1.5em;
    padding:0 0 15px 0;
    margin:0;
}

#content h2 {
	font-family:Trebuchet MS, tahoma, arial, helvetica;
    color:#6d6e72;
    font-size:18px;
    line-height:1.4em;
    padding:0 0 20px 0;
}


/* Sidebar Right
-----------------------------------------------------------------------------*/
#sideRight {
	float: right;
	margin-right: -425px;
	width: 425px;
	position: relative;
	background: #ffffff;
    padding:40px 0 0 0;
}

#sideRight p {
	font-family:Trebuchet MS, tahoma, arial, helvetica;
    color:#6d6e72;
    font-size:14px;
    line-height:1.5em;
    padding:0 0 15px 0;
    margin:0;
}

#sideRight ul li {
	font-family:Trebuchet MS, tahoma, arial, helvetica;
    color:#6d6e72;
    font-size:12px;
    line-height:1em;
    padding:0 0 10px 0;
    margin:0 0 0 12px;
}


/* Footer
-----------------------------------------------------------------------------*/
#footer {
	height: 50px;
	background: #ffffff;
}

.toggle-nav {
    display:none;
}

/* Media Queries
-----------------------------------------------------------------------------*/
@media screen and (max-width:850px) {

   #wrapper {
     max-width: 850px;
     width: 100%;
   }


   #header, #banner {
     max-width: 850px;
     width: 100%;
     height:130px;
   }

   #strapline,
   #footer {
     height: 35px;
     max-width: 850px;
     width: 100%;
   }

   #middle {
     max-width: 850px;
     width: 100%;
     border-right: 0;
   }


   #header img, #banner img, #strapline img {
     width: 100%;
   }

   #container {
     max-width: 850px;
     width: 55%;
     margin: 0 auto;
   }

   #content {
     max-width: 425px;
     width: 100%;
     padding: 0;
     margin-left: 10px;
   }

   #sideRight {
     border-right: 0;
     max-width: 425px;
     width: 40%;
     padding: 0;
     margin-right: 0;
   }

   .ad-gallery .ad-forward {
     right: -15px !important;
   }

   .ad-gallery .ad-back {
     left: -15px !important;
   }

   #content img, #sideRight img, #sideRight #gallery {
     width: 95%;
     max-width: 425px;
   }


   .menu {
    max-width: 850px;
    width: 100%;
    height: 25px;
}

   .menu ul li {
     margin-right: 13px;
   }


}

@media screen and (max-width:750px) and (orientation:landscape) {

   #wrapper {
     max-width: 750px;
     width: 100%;
   }


   #header, #banner {
     max-width: 750px;
     width: 100%;
     height:100px;
   }

   #strapline,
   #footer {
     height: 35px;
     max-width: 750px;
     width: 100%;
   }

   #middle {
     max-width: 750px;
     width: 100%;
     border-right: 0;
   }


   #header img, #banner img, #strapline img {
     width: 100%;
   }

   #container {
     max-width: 750px;
     width: 100%;
     margin: 0 auto;
   }

   #content, #sideRight {
     max-width: 730px;
     width: 95%;
     margin: 0 auto;
     padding: 0;
     float:none;
     clear:left;
     text-align:center;
   }

   #content img, #sideRight img, #sideRight #gallery {
     width: 85%;
     max-width: 730px;
   }


   .menu {
        position:relative;
        display:inline-block;
        width: 100%;
        font-family: Trebuchet MS, tahoma, arial, helvetica;
        height: auto;
    }

    .menu ul.active {
        display:none;
    }

    .menu ul {
        width:100%;
        position:absolute;
        top:100%;
        left:0px;
        padding:10px 0;
        background:#555D72;
        z-index: 999;
        color: #fff;
    }

    .menu li {
        margin:5px 0px 5px 0px;
        float:none;
        display:block;
        text-align: center;
        padding: 5px 0;
    }

    .menu li:hover, .menu ul li.on {
        background: #639DCF;
    }

    .menu ul li.on {
        display: block;
        margin: 0;
    }

    .menu a {
        display:block;
        color: #fff;
        text-decoration: none;
    }

    .toggle-nav {
        padding:20px 10px;
        float:none;
        display:inline-block;
        background:#555D72;
        color:#fff;
        font-size:20px;
        transition:color linear 0.15s;
        width: 96.8%;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .toggle-nav:hover, .toggle-nav.active {
        text-decoration:none;
        color:#ffffff;
    }

}

@media screen and (max-width:750px) and (orientation:portrait) {

   #wrapper {
     max-width: 426px;
     width: 100%;
   }


   #header, #banner {
     max-width: 426px;
     width: 100%;
     height:80px;
   }

   #strapline,
   #footer {
     height: 30px;
     max-width: 426px;
     width: 100%;
   }

   #middle {
     max-width: 426px;
     width: 100%;
     border-right: 0;
   }


   #header img, #banner img, #strapline img {
     width: 100%;
   }

   #container {
     max-width: 426px;
     width: 100%;
     margin: 0 auto;
   }

   #content, #sideRight {
     max-width: 410px;
     width: 95%;
     margin: 0 auto;
     padding: 0;
     float:none;
     clear:left;
     text-align: center;
   }

   #content img, #sideRight img, #sideRight #gallery {
     width: 95%;
     max-width: 410px;
   }

.menu {
        position:relative;
        display:inline-block;
        width: 100%;
        font-family: Trebuchet MS, tahoma, arial, helvetica;
        height: auto;
    }

    .menu ul.active {
        display:none;
    }

    .menu ul {
        width:100%;
        position:absolute;
        top:100%;
        left:0px;
        padding:10px 0;
        background:#555D72;
        z-index: 999;
        color: #fff;
    }

    .menu li {
        margin:5px 0;
        float:none;
        display:block;
        text-align: center;
        padding: 5px 0;
    }

    .menu li:hover, .menu ul li.on {
        background: #639DCF;
    }

    .menu ul li.on {
        display: block;
        margin: 0;
    }

    .menu a {
        display:block;
        color: #fff;
        text-decoration: none;
    }

    .toggle-nav {
        padding:20px 10px;
        float:none;
        display:inline-block;
        background:#555D72;
        color:#fff;
        font-size:20px;
        transition:color linear 0.15s;
        width: 94.4%;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .toggle-nav:hover, .toggle-nav.active {
        text-decoration:none;
        color:#ffffff;
    }

}

  .gallery-container {
    max-width: 100%;
    margin: auto;
    padding: 10px;
  }

  .main-image {
    width: 100%;
    max-width:320px;
    height: auto;
    max-height: 60vh;
      display: block;
  margin: 0 auto;
    object-fit: contain;
    border: 2px solid #ccc;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }

  .main-image.fade-out {
    opacity: 0;
  }

  .thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .thumbnails img {
    width: 22vw;
    max-width: 80px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .thumbnails img.active {
    border-color: #007BFF;
  }

  @media (max-width: 480px) {
    .thumbnails img {
      width: 28vw;
    }
  }
