@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

* {
  line-height: 1.6;
  font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 17px;
  color: #333;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  color: #222;
  background-color: #fafafa;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

iframe {
  width: 50vw;
  height: 28.125vw;
}

.menu {
  background: #302f2c;
}

.menu img {
  padding: 15px;
}

.toprhsmenu {
  display: block;
  padding-right: 20px;
}

.toprhsmenu a {
  color: white;
}

.subhead {
  background: #ededed;
  padding-left: 15px;
  padding-right: 15px;
  color: #555555;
}

.logo {
  padding-left: 21.5%;
}

.membersWebsite {
  margin: auto;
  width: 50%;
}

.nav2 {
  display: none;
}

.members_photo {
  display: block;
  margin: 5px;
  padding:5px;
}

.members_photo img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.soccolour {
  height: 15px;
  width: 100%;
  background: linear-gradient(
    to right,
    #eb5c9d 0%,
    #f39323 12%,
    #feca1a 25%,
    #8ec045 37%,
    #55b14b 50%,
    #65bfac 62%,
    #00a4e3 75%,
    #7671b2 87%,
    #000000 100%
  );
  clear: both;  /* keeps it below floated elements */
}

ul#navlist {
  list-style-type: none;
  margin: 0 auto;
  max-width: 1200px; width: 100%;
  background: #a3d8cd;
  padding: 0;
  overflow: hidden;
}

ul#navlist li {
  display: inline-block;
}

ul#navlist li a {
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  color: #45403c;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(255 255 255 / 25%);
  font-size: 14px;
}

ul#navlist li a:hover:not(.active) {
  color: #2f7d6f;
  background-color: transparent;
}

#navcontainer {
  display: block;
  margin: auto;
  width: 100%;
  background-color: #a3d8cd;
  overflow: hidden;
}

a {
  color: #2f7d6f;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

a:visited {
  color: #27685c;
  text-decoration: none;
}

a:active {
  color: gray;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #b33450;
  text-decoration: underline;
}

a.nav1 {
  color: #27685c;
  font-weight: normal;
}

a.nav1:visited {
  color: silver;
}

a.nav1:active {
  color: silver;
}

a.nav1:hover {
  color: blue;
  background-color: white;
}

a.nav2 {
  text-decoration: none;
  font-size: 11px;
  color: black;
  font-weight: bold;
  background-color: white;
  padding: 10px;
}

a.nav2:visited {
  color: gray;
}

a.nav2:active {
  color: #27685c;
}

a.nav2:hover {
  color: #27685c;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: #2f7d6f;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2f7d6f;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h3 {
  color: #2f7d6f;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 11px;
  color: white;
}

b {
  color: black;
  font-weight: bold;
}

.bdbrg,
.bdbrg1 {
  font-weight: bold;
  color: #990000;
}

.stxt {
  font-size: 8px;
  color: black;
}

.mtxt {
  font-size: 10px;
  color: black;
}

.ltxt {
  color: black;
}

.u {
  font-size: 7px;
  color: black;
}

i {
  font-size: 10px;
  color: #008000;
}

.vstxt {
  font-size: 7px;
  color: white;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

th {
  font-size: 11px;
}

td {
  padding: 0;
  margin: 0;
  border: none !important;
}

.pagecontent {
  max-width: 900px;
  margin: 1.5rem auto 3rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  padding: 2rem 2.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.pagecontent h2 {
  margin-left: 0;
}

.rightfloatside {
  float: right;
  display: block;
  margin: 5px;
  padding-right: 1%;
}

.members_photo img {
  width: 100%;
  max-width: 280px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {

  .pagecontent {
    padding-left: 2.5rem;
  }
}

a.tooltip {
  position: relative;
  font-weight: 700;
  color: #ff5a5f;
  border-bottom: 2px dashed #ff5a5f;
  cursor: help;
}

a.tooltip:hover {
  color: #e04c50;
}

a.tooltip b {
  display: none;
}

a.tooltip:hover b {
  display: block;
  position: absolute;
  top: 20px;
  left: -25px;
  padding: 5px;
  font-weight: normal;
  color: #fff;
  background: #a3d8cd;
  width: 250px;
  z-index: 500;
}

a.tooltip:hover b em {
  position: absolute;
  left: 20px;
  top: -6px;
  width: 11px;
  height: 6px;
  background: #fff url(../art/tooltip.gif) 0 0 no-repeat;
  display: block;
  font-size: 1px;
}

.clear {
  clear: both;
}

.feedbackForm {
  margin: 1% auto 1%;
  width: 27%;
}

.memberstwitter {
  border-radius: 7px;
  background: #fff;
  font-weight: 400;
  padding: 10px;
  margin-bottom: 10px;
}

.twitter-timeline-rendered {
  width: 100% !important;
}

.membersnews {
  border-radius: 7px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 400;
  padding: 10px;
  text-align: center;
}

#sidenavcontainer {
  background: #f9f9f9;
  padding: 15px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 250px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 20px;
}

#sidenavcontainer a {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  color: #444;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  border-radius: 4px;
}

#sidenavcontainer a:hover,
#sidenavcontainer a:focus {
  background-color: #2f7d6f;
  color: #fff;
  border-left-color: #b33450;
}

#sidenavcontainer a:last-child {
  margin-bottom: 0;
}

footer {
  background-color: #32302f;
  clear: both;
  font-size: 80%;
  padding: 20px 0;
  color: #ffffff;
  height: auto;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

footer p {
  color: #ffffff !important;
}

@media (max-width: 955px) {
  div#navcontainer {
    width: 100%;
    background-color: #a3d8cd;
    overflow: hidden;
  }

  ul#navlist {
    width: 66%;
    background: #a3d8cd;
    margin: auto;
  }

  ul#navlist li a {
    padding: 14px 6px;
    font-size: 14px;
  }
}

@media (max-width: 890px) {
  .membersWebsite {
    width: 70%;
    margin-top: 0;
  }

  body {
    overflow-wrap: anywhere;
  }

  #sidenavcontainer a {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  #sidenavcontainer a {
    padding: 10px;
    font-size: 12px;
  }

  a.nav1 {
    margin-bottom: 10px;
  }

  .memberstwitter,#sidenavcontainer,
  .membersnews {
    display: none;
  }

  .members_photo,
  .rightfloatside, .side-nav,
  #pagecontent {
    clear: both;
    float: none !important;
  }

  .members_photo-mobile,
  .members_photo-mobile img {
    border-radius: 10px;
    background: #fff;
    display: block;
    margin-bottom: 10px;
    padding-left: 2%;
  }

  .pagecontent {
    padding: 1rem 1.5rem;
    max-width: 100%;
    margin: 1rem auto 2rem;
  }

  .rightfloatside li {
    padding: 8px;
  }

  body {
    overflow-wrap: anywhere;
  }

  #sidenavcontainer,
  #mapsidenavcontainer {
    background: #fff;
    font-weight: 500;
    margin-top: 10px;
    padding: 10px 5px 5px 10px;
    min-width: 100px;
  }

  div#navcontainer {
    width: 100%;
    background-color: #a3d8cd;
  }

  ul#navlist {
    width: 100%;
    padding: 0;
    background: #a3d8cd;
  }

  ul#navlist li a {
    padding: 14px 6px;
    font-size: 12px;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  #mapsidenavcontainer,
  .nav2 {
    display: none;
  }

  body {
    overflow-wrap: anywhere;
  }

  #sidenavcontainer,
  #mapsidenavcontainer {
    background: #fff;
    font-weight: 500;
    margin-top: 10px;
    padding: 10px 5px 5px 1px;
    min-width: 100px;
  }

  .members_photo-mobile,
  .members_photo-mobile img {
    padding-left: 2%;
  }

  .feedbackForm {
    width: 40%;
  }
}

@media (max-width: 400px) {
  .feedbackForm {
    width: 55%;
  }
}

h2 {
  font-size: 1.8rem;
  color: #2f7d6f;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #2f7d6f;
  padding-bottom: 0.3rem;
  max-width: fit-content;
}

.pagecontent ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 2rem;
}

.pagecontent ul li {
  margin-bottom: 1rem;
  line-height: 1.4;
  font-size: 14px;
  color: #333;
  padding-left: 0;
  font-family: 'Lato', sans-serif;
}

.pagecontent ul li a {
  font-weight: 700;
  color: #2f7d6f;
  text-decoration: none;
  margin-right: 8px;
}

.pagecontent ul li a:hover {
  text-decoration: underline;
  color: #b33450;
}

.pagecontent ul li img {
  vertical-align: middle;
  margin-left: 4px;
  margin-right: 4px;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pagecontent ul li img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 2rem;
}

ul li {
  margin-bottom: 1rem;
  line-height: 1.4;
  font-size: 14px;
  color: #999;
  padding-left: 0;
  font-family: 'Lato', sans-serif;
}

ul li a {
  font-weight: 700;
  color: #2f7d6f;
  text-decoration: none;
  margin-right: 8px;
}

ul li a:hover {
  text-decoration: underline;
  color: #b33450;
}

ul li img {
  vertical-align: middle;
  margin-left: 4px;
  margin-right: 4px;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}


.main-layout {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}



div iframe {
  width: 100% !important;      /* fill the parent width */
  height: auto !important;     /* auto height based on width */
  aspect-ratio: 16 / 9;        /* maintain video ratio */
  display: block;              /* remove inline spacing issues */
  max-width: 100%;             /* prevent overflow */
}



.member-gallery-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.member-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1000px;
}

.member-gallery .gallery-item {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 2px;
    cursor: pointer;
    transition: transform 0.2s;
}

.member-gallery .gallery-item:hover {
    transform: scale(1.05);
}

/* Lightbox overlay */
#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
}


.site-header {
  display: flex;background: #302f2c;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

.site-header .logo img {
  max-height: 60px;
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.top-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
}

.subhead-left {
  flex-basis: 40%;
}

.subhead-center {
  flex-basis: 30%;
}

.subhead-right {
  text-align: right;
  flex-basis: 30%;
}

.content-wrapper {
  width: 100%;
  vertical-align: top; /* Only works on inline/inline-block children; use flex if needed */
}

.side-nav {
    float: left;
    width: 200px; /* adjust as needed */
}

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

.side-nav li {
    margin-bottom: 8px;
}

.top-menu li.button a {
    background-color: #0073e6;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.top-menu li.button a:hover {
    background-color: #005bb5;
}

.photographer-listing {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;

    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 30px;      
    background-color: #f9f9f9;
    box-sizing: border-box;      /* ensures padding is included in width */
    transition: box-shadow 0.3s;
}

.photographer-listing > * {
    margin-left: 10px;            /* small spacing between inner items */
}

.photographer-listing:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.photographer-listing img.thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.photographer-listing .name {
    font-weight: bold;
    margin-right: 5px;
}
.photographer-listing .category {
    font-size: 0.9em;
    color: #555;
    margin-right: 10px;
}
.photographer-listing .town {
    font-size: 0.85em;
    color: #777;
}


.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(20%) contrast(1.1);
    border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.map-info {
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.map-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.btn.primary {
  background: #0073e6;
  color: #000;
}

.btn.primary:hover {
  background: #005bb5;
}

.btn.secondary {
    background: #0073e6;
  border: 1px solid #888;
  color: #fff;
}

.btn.secondary:hover {
  background: #005bb5;
}

/* Mobile */
@media (max-width: 768px) {
  .premium-map-section {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    min-height: 250px;
  }
}

@media (max-width: 768px) {

  .top-menu ul {
    justify-content: flex-end; /* keeps button aligned nicely */
  }

  .top-menu li {
    display: none;
  }

  .top-menu li.button {
    display: block;
  }

  .top-menu li.button a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .site-header {
    padding: 8px 10px;
  }

  .logo {
    padding-left: 0;
  }

}