/*==================================================
                GOOGLE FONT
==================================================*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/*==================================================
                CSS VARIABLES
==================================================*/

:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary: #00b894;

  --white: #ffffff;
  --black: #222222;

  --text: #555555;

  --light: #f5f7fb;

  --border: #e7e7e7;

  --radius: 18px;

  --shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

  --transition: 0.4s ease;
}

/*==================================================
                RESET
==================================================*/


body {
  font-family: "Poppins", sans-serif;

  background: #fafafa;

  color: var(--black);

  overflow-x: hidden;
}

img {
  width: 100%;

  display: block;
}

a {
  text-decoration: none;
}

button {
  border: none;

  cursor: pointer;

  font-family: inherit;
}

/*==================================================
                CONTAINER
==================================================*/



/*==================================================
                GALLERY SECTION
==================================================*/

.gallery-section {
  padding: 80px 0;
}

/*==================================================
                GRID
==================================================*/

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));

  gap: 20px;
}

/*==================================================
                CARD
==================================================*/

.gallery-card {
  background: #fff;

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: var(--transition);

  position: relative;
}

.gallery-card:hover {
  transform: translateY(-10px);
}

/*==================================================
                IMAGE
==================================================*/

.gallery-image {
  position: relative;

  overflow: hidden;

  height: 260px;
}

.cover-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.7s;
}

.gallery-card:hover .cover-image {
  transform: scale(1.12);
}

/*==================================================
        HIDDEN IMAGE SOURCE
==================================================*/

.gallery-source {
  position: absolute;

  width: 0;

  height: 0;

  overflow: hidden;

  opacity: 0;

  pointer-events: none;
}

/*==================================================
            OVERLAY
==================================================*/

.gallery-overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  gap: 15px;

  opacity: 0;

  transition: 0.4s;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/*==================================================
                BUTTON
==================================================*/

.gallery-btn {
  width: 80px;

  height: 48px;

  border-radius: 50px;

  background: #fff;

  color: var(--primary);

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  font-weight: 600;

  transition: 0.35s;
}

.gallery-btn:hover {
  background: #003366;

  color: #fff;
}

/*==================================================
                GALLERY CONTENT
==================================================*/

.gallery-content {
  padding: 15px;

  text-align: center;

  background: #fff;
}

.gallery-content h3 {
  font-size: 15px;

  color: #222;

  font-weight: 600;

  margin-bottom: 8px;
}

.gallery-content a {
  display: inline-block;

  color: #777;

  font-size: 15px;

  font-weight: 500;
  transition: 0.3s ease;
}

.gallery-content a:hover {
  color: #003366;
}

/*==================================================
            CARD HOVER EFFECT
==================================================*/

.gallery-card {
  border: 1px solid #ececec;
}

.gallery-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/*==================================================
            BUTTON ICON
==================================================*/

.gallery-btn i {
  font-size: 20px;
}

/*==================================================
            LIGHTBOX
==================================================*/

.lightbox {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.95);

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  visibility: hidden;

  opacity: 0;

  transition: 0.35s ease;

  z-index: 9999;
}

.lightbox.active {
  visibility: visible;

  opacity: 1;
}

/*==================================================
            LIGHTBOX CONTENT
==================================================*/

.lightbox-content {
  width: 100%;

  display: flex;

  justify-content: center;

  align-items: center;

  position: relative;

  padding: 30px;
}

.lightbox-content img {
  max-width: 90%;

  max-height: 75vh;

  object-fit: contain;

  border-radius: 10px;

  transition: opacity 0.35s ease;
}

/*==================================================
            CLOSE BUTTON
==================================================*/

.close-btn {
  position: absolute;

  top: 25px;

  right: 25px;

  width: 55px;

  height: 55px;

  border-radius: 50%;

  border: none;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);

  color: #fff;

  font-size: 22px;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: 0.3s;

  z-index: 10001;
}

.close-btn:hover {
  background: #fff;

  color: #111;
}

/*==================================================
        PREVIOUS & NEXT BUTTON
==================================================*/

.prev-btn,
.next-btn {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 60px;

  height: 60px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);

  color: #fff;

  font-size: 26px;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: 0.3s;

  z-index: 10001;
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

.prev-btn:hover,
.next-btn:hover {
  background: #fff;

  color: #111;
}

/*==================================================
            IMAGE COUNTER
==================================================*/

.image-counter {
  position: absolute;

  bottom: -40px;

  left: 50%;

  transform: translateX(-50%);

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);

  color: #fff;

  padding: 10px 20px;

  border-radius: 50px;

  font-size: 15px;

  font-weight: 600;
}

/*==================================================
            FADE ANIMATION
==================================================*/

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: scale(0.96);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

.lightbox.active img {
  animation: fadeIn 0.35s ease;
}

/*==================================================
                THUMBNAIL WRAPPER
==================================================*/

.thumbnail-wrapper {
  width: 92%;

  max-width: 1100px;

  margin-top: 25px;

  overflow: hidden;
}

/*==================================================
                THUMBNAIL STRIP
==================================================*/

.thumbnail-strip {
  display: flex;

  align-items: center;

  gap: 12px;

  overflow-x: auto;

  overflow-y: hidden;

  scroll-behavior: smooth;

  padding: 12px 5px;
}

/* Hide Scrollbar */

.thumbnail-strip::-webkit-scrollbar {
  height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);

  border-radius: 20px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);

  border-radius: 20px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/*==================================================
                THUMBNAIL
==================================================*/

.thumbnail {
  flex: 0 0 auto;

  width: 90px;

  height: 65px;

  border-radius: 10px;

  overflow: hidden;

  cursor: pointer;

  border: 3px solid transparent;

  transition: 0.35s ease;
}

.thumbnail img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.35s ease;
}

.thumbnail:hover {
  transform: translateY(-4px);
}

.thumbnail:hover img {
  transform: scale(1.08);
}

/*==================================================
            ACTIVE THUMBNAIL
==================================================*/

.thumbnail.active {
  border-color: var(--primary);

  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}

.thumbnail.active img {
  transform: scale(1.05);
}

/*==================================================
                BUTTON EFFECTS
==================================================*/

.gallery-btn {
  position: relative;

  overflow: hidden;
}

.gallery-btn::before {
  content: "";

  position: absolute;

  top: 50%;

  left: 50%;

  width: 0;

  height: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.25);

  transform: translate(-50%, -50%);

  transition: 0.5s;
}

.gallery-btn:hover::before {
  width: 260px;

  height: 260px;
}

/*==================================================
                IMAGE EFFECT
==================================================*/

.lightbox-content img {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/*==================================================
                SELECTION
==================================================*/

::selection {
  background: var(--primary);

  color: #fff;
}

/*==================================================
            FOCUS STYLES
==================================================*/

button:focus,
a:focus {
  outline: 3px solid rgba(13, 110, 253, 0.25);

  outline-offset: 3px;
}

/*==================================================
            UTILITY CLASSES
==================================================*/

.text-center {
  text-align: center;
}

.shadow {
  box-shadow: var(--shadow);
}

.radius {
  border-radius: var(--radius);
}

.d-none {
  display: none !important;
}

/*==================================================
            SMOOTH TRANSITIONS
==================================================*/

.gallery-card,
.gallery-btn,
.thumbnail,
.cover-image,
.lightbox-content img {
  transition: all 0.35s ease;
}

/*==================================================
                TABLET
==================================================*/

@media (max-width: 992px) {


  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
  }

  .gallery-image {
    height: 230px;
  }

  .lightbox-content img {
    max-width: 92%;
    max-height: 68vh;
  }

  .thumbnail-wrapper {
    width: 95%;
  }
}

/*==================================================
                MOBILE
==================================================*/

@media (max-width: 768px) {
  .gallery-section {
    padding: 55px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .gallery-image {
    height: 230px;
  }

  .gallery-content {
    padding: 18px;
  }

  .gallery-content h3 {
    font-size: 20px;
  }

  .gallery-content span {
    font-size: 14px;
  }

  .gallery-btn {
    width: 170px;

    height: 46px;

    font-size: 14px;
  }

  .prev-btn,
  .next-btn {
    width: 50px;

    height: 50px;

    font-size: 22px;
  }

  .prev-btn {
    left: 12px;
  }

  .next-btn {
    right: 12px;
  }

  .close-btn {
    width: 48px;

    height: 48px;

    top: 15px;

    right: 15px;

    font-size: 20px;
  }

  .lightbox-content {
    padding: 20px;
  }

  .lightbox-content img {
    max-width: 95%;

    max-height: 58vh;
  }

  .image-counter {
    bottom: -32px;

    padding: 8px 18px;

    font-size: 14px;
  }

  .thumbnail {
    width: 75px;

    height: 55px;
  }
}

/*==================================================
            SMALL MOBILE
==================================================*/

@media (max-width: 576px) {


  .gallery-image {
    height: 210px;
  }

  .gallery-content h3 {
    font-size: 18px;
  }

  .gallery-btn {
    width: 155px;

    height: 42px;

    font-size: 13px;

    gap: 8px;
  }

  .gallery-btn i {
    font-size: 15px;
  }

  .prev-btn,
  .next-btn {
    width: 44px;

    height: 44px;

    font-size: 18px;
  }

  .close-btn {
    width: 44px;

    height: 44px;

    font-size: 18px;
  }

  .thumbnail {
    width: 65px;

    height: 48px;
  }

  .image-counter {
    font-size: 13px;

    padding: 7px 16px;
  }
}

/*==================================================
            LARGE DESKTOP
==================================================*/

@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-image {
    height: 280px;
  }
}

/*==================================================
            CUSTOM SCROLLBAR
==================================================*/

::-webkit-scrollbar {
  width: 10px;

  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Overlay Buttons alignment fix */
.gallery-overlay {
  flex-direction: row !important;
  gap: 14px !important;
}

.gallery-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
}

/*==================================================
                END
==================================================*/