.container {
  max-width: 1400px !important;
}

.cardContent {
    position: absolute;
    bottom: 0px;
    padding: 2rem 1rem 1rem;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .6);
    z-index: 2;
}

.galleryTitle {
    font-size: 16px;
    font-weight: 600;
    pointer-events: none; /* Prevents interfering with interactions */
}

.galleryInfo {
    font-size: 13px;
    font-weight: 200;
    pointer-events: none; /* Prevents interfering with interactions */
}

.overlayCard::before {
    content: '';
    position: absolute;
    background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 60%); /* Semi-transparent black background for the shadow effect */
    pointer-events: none; /* Prevents interfering with interactions */
}

.imageCard {
    object-position: center top;
    height: 290px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.imageCountBadge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0,0,0,0.4);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.imageCountBadge .icon-img {
  width: 16px;
  height: 16px;
  position: relative;
  bottom: 1px;
}

.download {
  background: #000;
}

#lightgallery img {
  display: block;          /* removes inline-gap and ensures full-width image */
  transition: transform 0.2s ease;
}

/* The bottom shadow overlay */
#lightgallery a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  transition: height 0.25s ease;
  pointer-events: none;   /* shadow ignores mouse */
  z-index: 1;
}

#lightgallery a:hover::after {
  height: 23%;
}

/* text overlay */
#lightgallery a .overlay-text {
position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: left;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 18px;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 2;
  text-shadow: 0px 1px 5px rgba(0, 0, 0, .6);
  pointer-events: none;   /* shadow ignores mouse */

}

/* expand height and fade text in */
#lightgallery a:hover .overlay-text {
  height: 35%;  /* match your ::after height */
  opacity: 1;
}

/* Updated Downloaded Photo Cards - Better for 4:3 images */
.downloadedPhoto {
    display: flex;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
}

.downloadedPhoto:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #20c997;
}

/* Wider image section for 4:3 ratio */
.downloadedPhoto img {
    width: 360px; /* Increased from 180px */
    height: auto; /* Increased from 120px */
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}

/* Wider image section for 4:3 ratio */
.downloadedPhoto img:hover {
  transform: none;
}

/* Updated Photo Info with better spacing */
.downloadedPhotoInfo {
    flex: 1;
    padding: 25px; /* Increased from 20px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #e9ecef;
    margin-left: 0;
}

.downloadedPhotoInfo p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5; /* Better line height */
    color: #ccc;
}

.downloadedPhotoInfo a {
    font-size: 14px;
}

.downloadGalleryMask {
  overflow-y: scroll;
}

.fullDownloadGallery .downloadedPhotoInfo {
    margin-left: 0;
    gap: 15px;
}

.fullDownloadGallery {
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fullDownloadGallery .downloadedPhoto {
  min-height: 270px;
}

.downloadGallery {
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.downloadGalleryMask .downloadGallery {
  overflow-y: hidden;
}

.downloadGallery img {
  width: 30%
}

.downloadGallery .downloadedPhoto {
  max-height: 150px;
}

/* Gallery Title */
.downloadGalleryTitle {
    font-size: 16px !important;
}

/* Gallery Title */
.fullDownloadGallery .downloadGalleryTitle {
    font-size: 21px !important;
}

.downloadGalleryTitle strong {
    color: #20c997;
    font-weight: 600;
}

/* Date styling - better positioned */
.downloadedPhoto p:nth-last-child(2) {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
    margin: 0;
}

.downloadGallery .downloadedPhotoInfo {
  gap: 10px;
}

/* Updated Download Link */
.download-link {
    color: #fff;
    background: transparent;
    border: 1px solid #20c997;
    padding: 10px 18px; /* Slightly larger */
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.download-link:hover {
    background: #20c997;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .downloadedPhoto {
        flex-direction: column;
        min-height: auto;
    }
    
    .downloadedPhoto img {
        width: 100%;
        height: 200px; /* Better mobile height */
    }
    
    .downloadedPhotoInfo {
        padding: 20px;
        min-height: auto;
    }
}

.home-about-text {
  padding: 0 20%;
  margin: 20px 0;
  text-align: center;
  font-size: 1.5em;
  font-weight: 400;
  color: white;
}

.gallery-container {
  display: flex;
  align-items: center; /* vertically align slider & text */
  justify-content: center;
  width: 100%;
  max-width: 1200px; /* optional */
  margin: 0 auto;
  gap: 20px; /* spacing between columns */
}

/* Left column = slider */
.slider-column {
  flex: 1; /* take ~50% */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.swiper {
  width: 100%;
  padding: 40px 0;
  overflow: visible;
}

.slider-mask {
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.swiper-slide img {
  width: 100%;   /* fill column width */
  max-width: 100%; /* keep it reasonable */
  height: auto;
  object-fit: contain;
}

/* Darken non-active slides */
.swiper-slide:not(.swiper-slide-active) {
  filter: brightness(0.6);
  transform: scale(0.9);
}

.swiper-pagination {
  bottom: 15px !important;
  margin-bottom: 40px;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 1;
  position: relative; /* needed for the ::after ring */
  margin: 0 6px !important;
}

/* Active bullet with separate white ring */
.swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  top: -6px;   /* distance from the bullet = gap size */
  left: -6px;
  width: calc(100% + 12px);  /* expands equally on all sides */
  height: calc(100% + 12px);
  border: 1px solid white;   /* the outline */
  border-radius: 50%;
  box-sizing: border-box;
}

.swiper img:hover {
  transform: none;
  -webkit-transform: none;
}


/* Scroll bars */

/* Applies to everything with overflow */
* {
  /* Firefox */
  scrollbar-width: thin;              /* makes scrollbar thinner */
  scrollbar-color: #555 #222;         /* thumb color | track color */
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;      /* vertical scrollbar width */
  height: 8px;     /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
  background: #222;  /* track (background) */
}

::-webkit-scrollbar-thumb {
  background-color: #555;  /* thumb (scroll handle) */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666;  /* slightly lighter on hover */
}

.icon-menu {
  color: white;
}

@media (max-width: 768px) {
  .home-about-text {
    padding: 0;
    font-size: 1.3em;
  }

  .lg-sub-html p {
    font-size: 13px;
  }
}


/* Small devices (up to 480px) */
@media (max-width: 480px) {
  .searchBar {
    width: 100%;
  }

  .home-about-text {
    padding: 0;
    font-size: 1.1em;
  }

  #menu-container img {
    width: 100%;
  }
}

/* Medium devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .searchBar {
    width: 100%;
  }
}

/* Large devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .searchBar {
    width: 100%;
  }
}

/* Extra large devices (1025px and up) */
@media (min-width: 1025px) {
  .searchBar {
    width: 50%;
  }
}

.copy-credit-btn {
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    margin-left: 5px;
    opacity: 1;
    transition: opacity 0.2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    outline: none !important;
}

.copy-credit-btn:hover {
    opacity: .7;
}

.copy-credit-btn svg {
    display: block;
}

.checkIcon {
    opacity: 1;
}