* {
  box-sizing: border-box;
}

/*TOPBARRRRRR START*/
/* Topbar styles */
#topbar {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #3333336e;
  overflow: hidden;
  position: static;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 16px;
  box-sizing: border-box;
}

#logo {
  margin-left: 24px;   /* Add space from the left edge */
  margin-right: 32px;
  height: 28px;
  width: auto;
}

#topbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  flex-wrap: wrap; /* Allow items to wrap into multiple rows */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#topbar ul li {
  float: right;
}

#topbar ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#topbar ul li a:hover {
  background-color: #111111b7;
  border-radius: 16px; /* Rounded corners on hover */
  transition: background 0.2s; /* Only animate background, not border-radius */
}

#topbar ul li a.active {
  border-radius: 16px !important;
  background-color: #111111b7;
  transition: background 0.2s;
}
/*TOPBARRRRRR END*/

/*FAQ START*/
.faq-text {
  text-align: center;
  margin-bottom: 5%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.faq-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.accordion {
  background-color: #000000ab;
  color: white;
  cursor: pointer;
  padding: 25px;
  width: 100%;
  max-width: 1000px;
  border: none;
  text-align: center;
  outline: none;
  font-size: 19px;
  font-weight: bold;
  transition: 0.4s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 10px auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion::after {
  content: '\002B';
  color: white;
  font-weight: bold;
  margin-left: 10px;
}

.accordion.active::after {
  content: "\2212";
}

.accordion.active {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 8px 8px 0 0; /* Only top corners rounded when active */
}

.panel {
  display: none;
  padding: 8px 18px;
  background-color: #2e2e2e;
  overflow: hidden;
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  text-align: center;
}

.accordion.active + .panel {
  display: block;
}
/*FAQ END*/

#header {
  min-height: 100vh;
  width: 100%;
  background-position: center;
  background-size: cover;
  position: static;
  overflow: hidden;
}

.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: 50px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.text-box p {
  margin: 20px 0 40px;
  font-size: 20px;
  color: #fff;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: white;
  border-radius: 20px;
  padding: 14px 36px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  transform: none;
  transition: none;
}

.hero-btn:hover {
  color: white;
  background-color: rgb(0, 0, 0, 0.5);
  transform: none;
  transition: none;
}

.video-cover {
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

h1, h2, h3 {
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-top: 20vh;
}

h2 {
  font-size: 3rem;
}

@media (max-width: 750px) {
  #background-video {
    height: 100vh;
    width: 5vw;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
  }
  body {
    background: no-repeat;
    background-size: cover;
  }
  .faq-container,
  .accordion,
  .panel {
    max-width: 100%;
    width: 100%;
  }
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
  color: #f2f2f2;
  font-size: 16px;
  padding: 16px 12px;
  padding-bottom: 20px;
  position: static;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  position: relative;
  top: 0px; /* 20px below the image */
  z-index: 10; /* Ensure dots are above the photo frame and arrows */
}

.active, .dot:hover {
  background-color: #717171;
}

.slideshow-container img {
  border-radius: 15px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from { opacity: .4 }
  to { opacity: 1 }
}

@keyframes fade {
  from { opacity: .4 }
  to { opacity: 1 }
}

/*PORTFOLIO START*/
#portfolio, #contact {
  margin-top: 10%;
}

.portfolio-text, .contact-text {
  text-align: center;
  margin-bottom: 5%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* --- CARD LAYOUT --- */
/* --- CARD LAYOUT --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
}


/* --- CARD STYLING --- */
.card {
  background-color: #121212;
  color: white;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

/* --- CARD IMAGE + BUTTON CONSISTENT SPACING --- */
.card {
  /* Remove min-height/height for natural sizing */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
  background-color: #121212;
  color: white;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.card-image-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop in */
  object-position: center;
  display: block;
  background: #222;
  border-radius: 0;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
}

.card h3 {
  font-size: 2rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 120;
  margin: 24px 0 0 0;
  flex-shrink: 0;
}

.project-btn {
  margin-top: 24px;
  margin-bottom: 24px;
  display: block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #525252;
  padding: 12px 34px;
  font-size: 13px;
  background: #525252;
  cursor: pointer;
  transition: 1s;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  z-index: 2;
  position: relative;
}

.project-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.project-btn:hover {
  border: 1px solid #363636;
  background: #363636;
}

/* --- CARD RESPONSIVE --- */
@media (max-width: 600px) {
  .card h3 {
    font-size: 1.2rem;
    margin-top: 16px;
  }
  .project-btn {
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .card-image-container {
    aspect-ratio: 16/10;
  }
  .faq-container,
  .accordion,
  .panel {
    max-width: 100%;
    width: 100%;
  }
}
@media (min-width: 800px) {
  .card h3 {
    font-size: 2rem;
    margin-top: 24px;
  }
  .project-btn {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .card-image-container {
    aspect-ratio: 16/9;
  }
}

/* --- CARD IMAGE HOVER --- */
.card img:hover {
  opacity: 80%;
}

.footer {
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

.footer h4 {
  margin-bottom: 25px;
  margin-top: 20px;
  font-weight: 600;
}

.icons .fa {
  color: #ffffff;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
}

/* Copyright */
.footer .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 10px;
  color: #ccc;
}


/* Hide desktop nav on small screens, hide mobile nav on large screens */
#topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3333336e;
  border-radius: 16px; /* Added for rounded corners */
}
#topbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  flex-wrap: wrap; /* Allow items to wrap into multiple rows */
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#topbar li a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: white;
}

.topnav {
  overflow: hidden;
  background-color: #000000ab; /* Match old accordion/menu color */
  position: relative;
}
.topnav #myLinks {
  display: none;
  background-color: #000000ab; /* Match old accordion/menu color */
}
.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}
.topnav a.icon {
  background: #383838; /* Match old accordion/menu color */
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}
.topnav a:hover {
  background-color: #111111b7; /*  */
  color: white;
}
.topnav .active {
  background-color: #383838;
  color: white;
}

/* Hide mobile nav on desktop */
.mobile-only {
  display: none;
}

/* Responsive: handle mobile nav, hide desktop nav */
/*
@media screen and (max-width: 1050px) {
  #topbar {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}*/


:root {
  --breakpoint-mobile-nav: 880px; /* Used for mobile navigation breakpoint, was previously 840px */
}

@media screen and (max-width: var(--breakpoint-mobile-nav)) {
  #topbar {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* Make mobile topbar always on top */
.topnav.mobile-only {
  position: relative;      /* Stacks above content, but scrolls away */
  margin: 12px auto 0 auto;/* Space from top and sides */
  width: auto;
  z-index: 9999;
  border-radius: 16px;
  box-sizing: border-box;
}

/* Centered containers for main sections */
#topbar,
.topnav.mobile-only,
.slideshow-container,
.cards,
.faq-container {
  max-width: 1000px;
  width: 100%;
  margin: 12px auto 0 auto; /* top margin, auto left/right */
  box-sizing: border-box;
  border-radius: 16px;
}

/* Remove horizontal margin from .topnav.mobile-only */
.topnav.mobile-only {
  margin: 12px auto 0 auto !important;
}

/* Remove left margin from #logo if not needed */
#logo {
  margin-left: 24px;   /* Add space from the left edge */
  margin-right: 32px;
  height: 28px;
  width: auto;
}

/* For mobile, ensure .cards and .slideshow-container are also centered */
@media (max-width: 1050px) {
  #topbar,
  .topnav.mobile-only,
  .slideshow-container,
  .cards,
  .faq-container {
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Add this at the end of your CSS file or near your topbar styles */
.kontaktiraj-btn {
  display: inline-block;
  margin-right: 12px;
  padding: 14px 36px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 20px !important; /* Ensure rounded corners */
  text-decoration: none;
  font-weight: bold;
  font-family: inherit;
  font-size: 13px;
  border: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  box-shadow: none;
  position: relative;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: 2.5px solid #7fcfff !important;
  outline-offset: 2px !important;
}

/* Make .kontaktiraj-btn look like a button and pointer */
.kontaktiraj-btn {
  /* ...existing code... */
  cursor: pointer !important;
}

/* Default: logo left, vertically centered in topbar */
#topbar-row {
  display: flex;
  align-items: center;
}

/* Responsive: below 1020px, keep logo left and center it vertically in the expanded (column) topbar */
@media (max-width: 520px) {
  #topbar {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  #topbar-row {
    display: flex;
    flex-direction: row;
    align-items: center;      /* Vertically center logo and nav */
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    position: relative;
  }
  #logo {
    margin-left: 24px;        /* Keep space from the left edge */
    margin-right: 32px;
    align-self: center;       /* Vertically center in the row */
    display: block;
    position: static;         /* No absolute/transform, keeps it left */
    transform: none;
  }
  .kontaktiraj-btn {
    display: block;
    margin: 20px auto 8px auto;
    padding: 14px 36px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #525252;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    box-shadow: none;
    position: static;
    text-align: center;
    width: fit-content;
  }
  .kontaktiraj-btn:hover {
    background: #363636;
    border: 1px solid #363636;
    color: #fff;
  }
}

/* Prevent scrolling when this class is applied to the body */
.no-scroll {
  overflow: hidden !important;
}

#fullscreen-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: rgba(10,10,10,0.98);
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fs-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;    /* Consistent width */
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

#fs-image {
  max-width: 90vw;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 40px #000;
  cursor: default;
  border-radius: 12px;
}

.fs-description-static {
  color: #f2f2f2;
  font-size: 16px;
  padding: 16px 12px 12px 12px;
  text-align: center;
  max-width: 90vw;    /* Match image and container */
  width: 100%;
  background: transparent;
  margin: 0;
  box-sizing: border-box;
  position: static;
  z-index: 1002;
  word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .fs-content {
    max-width: 98vw;
  }
  #fs-image {
    max-width: 98vw;
    margin-bottom: 16px;
  }
  .fs-description-static {
    font-size: 14px;
    padding: 10px 4vw 10px 4vw;
    max-width: 98vw;
  }
}

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 32px auto 40px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #222;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 32px rgba(0,0,0,0.28);
}

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10,10,10,0.98);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox.active {
  display: flex;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 0 40px #000;
  margin-bottom: 24px;
  background: #222;
}

#lightbox-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  z-index: 10002;
  transition: color 0.2s;
}

#lightbox-close:hover {
  color: #ff5555;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 0 2vw;
  }
  .gallery-grid img {
    height: 28vw;
    min-height: 80px;
    border-radius: 8px;
  }
  #lightbox-image {
    max-width: 98vw;
    max-height: 60vh;
    border-radius: 10px;
  }
  #lightbox-close {
    top: 12px;
    right: 18px;
    font-size: 36px;
  }
}

:root {
  --main-container-width: 1021px;
  /* --main-container-max-width: 98vw;  Disabled for now: using explicit max-widths elsewhere */
}

/* Consistent container width for all main sections */
#topbar,
.topnav.mobile-only,
.slideshow-container,
.cards,
.faq-container,
#fullscreen-overlay .fs-content {
  max-width: var(--main-container-width);
  width: 100%;
  margin: 12px auto 0 auto;
  box-sizing: border-box;
  border-radius: 16px;
}

/* Responsive: shrink containers on smaller screens */
@media (max-width: 1050px) {
  #topbar,
  .topnav.mobile-only,
  .slideshow-container,
  .cards,
  .faq-container,
  #fullscreen-overlay .fs-content {
    max-width: var(--main-container-max-width);
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- GALLERY CATEGORIES --- */
.gallery-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 32px auto 40px auto;
  padding: 0 12px;
}

.gallery-card {
  background: #181818;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  transition: transform 0.18s, box-shadow 0.18s;
}

.gallery-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.18s;
}

.gallery-card-title {
  text-align: center;
  padding: 18px 0 16px 0;
  font-size: 1.2rem;
  color: #fff;
  background: #222;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: scale(1.04);
  box-shadow: 0 4px 32px rgba(0,0,0,0.28);
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  transform: scale(1.05);
}

@media (max-width: 1020px) {
  #topbar {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  #topbar-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Center the row contents */
    width: 100%;
    min-height: 0;
    position: relative;
  }
  #logo {
    margin-left: 24px;
    margin-right: 32px;
    align-self: center;
    display: block;
    position: static;
    transform: none;
  }
  #topbar ul {
    flex-grow: 1;
    justify-content: center; /* Center the nav links */
    margin: 0;
    padding: 0;
  }
  .kontaktiraj-btn {
    display: block;
    margin: 16px auto 8px auto;
    padding: 14px 36px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #525252;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    box-shadow: none;
    position: static;
    text-align: center;
    width: fit-content;
  }
  .kontaktiraj-btn:hover {
    background: #363636;
    border: 1px solid #363636;
    color: #fff;
  }
}

@media (max-width: 835px) {
  #topbar {
    display: none !important;
  }
  .topnav.mobile-only {
    display: block !important;
  }
}

/* Center the 'Leon Metelko Photography' text in the mobile topnav */
.topnav.mobile-only > a.active {
  text-align: center;
  width: 100%;
  display: block;
  font-weight: bold;
  font-size: 1em;
}
.topnav.mobile-only {
  text-align: center;
}
.topnav.mobile-only .icon {
  position: absolute;
  right: 0;
  top: 0;
}

/* Mobile nav fullscreen overlay */
.topnav.mobile-only.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  background: #000 !important; /* Solid black background */
  z-index: 10000;
  margin: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 48px;
  transition: background 0.2s;
}

.topnav.mobile-only.fullscreen #myLinks {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 32px;
  gap: 18px;
}

.topnav.mobile-only.fullscreen #myLinks a {
  font-size: 1.3em;
  padding: 18px 0;
  color: #fff;
  background: none;
  border-radius: 12px;
  border: none;
  width: 80vw;
  max-width: 340px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  margin: 0 auto;
  letter-spacing: 0.5px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.topnav.mobile-only.fullscreen #myLinks a:hover {
  background: #181818;
  color: #7fcfff;
}

.topnav.mobile-only.fullscreen > a.active {
  font-size: 1.4em;
  margin-bottom: 0;
  margin-top: 0;
  color: #fff;
  background: none;
  border: none;
  text-align: center;
  width: 100%;
  display: block;
  font-weight: bold;
  letter-spacing: 1px;
}

.topnav.mobile-only.fullscreen .icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2em;
  z-index: 10001;
  background: none;
  color: #fff;
  transition: color 0.2s;
}

.topnav.mobile-only.fullscreen .icon:hover {
  color: #7fcfff;
}

/* Smooth fade-in/out for overlay */
.topnav.mobile-only.fullscreen {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), background 0.2s;
}
.topnav.mobile-only.fullscreen.show {
  opacity: 1;
  pointer-events: auto;
}

/* Animate menu links in overlay */
.topnav.mobile-only.fullscreen #myLinks,
.topnav.mobile-only.fullscreen > a.active,
.topnav.mobile-only.fullscreen .icon {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.topnav.mobile-only.fullscreen:not(.show) #myLinks,
.topnav.mobile-only.fullscreen:not(.show) > a.active,
.topnav.mobile-only.fullscreen:not(.show) .icon {
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
}
.topnav.mobile-only.fullscreen.show #myLinks,
.topnav.mobile-only.fullscreen.show > a.active,
.topnav.mobile-only.fullscreen.show .icon {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Make slideshow arrows rounded and flush with the inner edge of the 3:2 frame */
.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin: 0;
  padding: 0;
  z-index: 10;
  /* Responsive sizing below */
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.slideshow-container .prev {
  left: 20px;
  right: auto;
}

.slideshow-container .next {
  right: 20px;
  left: auto;
}

/* Medium screens */
@media (max-width: 900px) {
  .slideshow-container .prev,
  .slideshow-container .next {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* Small screens */
@media (max-width: 600px) {
  .slideshow-container .prev,
  .slideshow-container .next {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .slideshow-container .prev,
  .slideshow-container .next {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}