﻿/* Gallery page styles moved from inline <style> */
.gallery-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
}

.gallery-hero-full {
    position: relative;
    width: 100vw;
    /* height: 300px; */
    background: #e8e8e8;
    overflow: hidden;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 767px) {
    .gallery-hero-full {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .gallery-bg-frame {
        max-width: 460px;
        margin: 0 auto;
        min-height: 350px;
    }

    .gallery-bg-title {
        left: 50%;
        transform: translateX(-50%);
        top: 14%;
        width: 85%;
        text-align: center;
    }

    .gallery-bg-title h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .gallery-bg-collage {
        width: 85%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 8%;
        height: 55%;
    }

    .polaroid {
        max-width: 180px;
    }

    .polaroid-1 {
        width: 58%;
    }

    .polaroid-2,
    .polaroid-3 {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .gallery-bg-frame {
        min-height: 300px;
    }

    .gallery-bg-title h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .gallery-bg-collage {
        width: 88%;
        height: 52%;
        bottom: 10%;
    }

    .polaroid {
        max-width: 150px;
    }
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #cb0e0f;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.gallery-main-bg {
    background-image: url("/assets/images/Gallery/Union.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    min-height: 460px;
}

@media (max-width: 767px) {
    .gallery-main-bg {
        min-height: 340px;
    }
}

.gallery-img-container {
    overflow: hidden;
    border-radius: 8px;
    break-inside: avoid;
    margin-bottom: 20px;
}

.gallery-img-container img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-img-container img:hover {
    transform: scale(1.03);
}

.rlc-lab-section {
  background: #efefef;
  padding: 18px 0 48px;
}
.rlc-lab-section + .rlc-lab-section {
  margin-top: 26px;
  border-top: 18px solid #fff;
  padding-top: 30px;
}
.rlc-lab-inner {
    width: min(1220px, 94%);
    margin: 0 auto;
}
.rlc-lab-pill {
    margin: 0 auto 14px;
    width: fit-content;
    background: #df0000;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    border-radius: 999px;
    padding: 12px 32px;
    box-shadow: 0 10px 22px rgba(190, 0, 0, 0.32);
    transform: rotate(-2.5deg);
    transform-origin: center;
}
.rlc-lab-desc {
    text-align: center;
    color: #111;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 500;
    max-width: 1180px;
    margin: 0 auto 24px;
}
.rlc-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 434.72px);
    justify-content: center;
    gap: 16px;
}
.rlc-lab-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.14);
    width: 434.72px;
    height: 309.64px;
    min-height: 309.64px;
    transform: none !important;
}
.rlc-lab-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none !important;
}
.rlc-lab-card.is-more::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}
.rlc-lab-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 2;
}

@media (max-width: 1024px) {
    .rlc-lab-pill {
        font-size: 32px;
        padding: 10px 24px;
    }
    .rlc-lab-desc {
        font-size: 26px;
    }
    .rlc-lab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rlc-lab-card {
        width: 100%;
        height: 260px;
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .rlc-lab-grid {
        grid-template-columns: 1fr;
    }
    .rlc-lab-pill {
        font-size: 26px;
    }
    .rlc-lab-desc {
        font-size: 20px;
    }
    .rlc-lab-card {
        width: 100%;
        height: 220px;
        min-height: 220px;
    }
}
.gallery-lab-showcase {
    position: relative;
    background: #f5f5f5;
    padding-top: 0;
    overflow: hidden;
}
.gallery-lab-top {
    text-align: center;
    padding: 0 16px 10px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-lab-dotline .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d1000f;
}

.projects-showcase-section {
  background: #efefef;
  padding: 26px 0 22px;
  border-top: 14px solid #fff;
}
.projects-showcase-inner {
  width: min(1380px, 96%);
  margin: 0 auto;
}
.projects-pill {
    width: fit-content;
    margin: 0 auto 14px;
    background: #df0000;
    color: #fff;
    border-radius: 999px;
    padding: 10px 30px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}
.projects-desc {
    margin: 0 auto 22px;
    text-align: center;
    color: #111;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 500;
    max-width: 1320px;
}
.projects-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-showcase-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.project-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-showcase-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,0));
}
.project-showcase-card h3 {
  position: absolute;
  left: 16px;
  bottom: 10px;
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  z-index: 2;
}

.gallery-thankyou-section {
  background: #efefef;
  padding: 20px 0 40px;
}
.gallery-thankyou-card {
  width: fit-content;
  margin: 0 auto;
  background: #ececec;
  border-radius: 12px;
  padding: 18px 28px 16px;
}
.gallery-thankyou-card h2 {
  margin: 0;
  line-height: 1;
}
.gallery-thankyou-card h2 span {
    color: #d50000;
    font-size: 60px;
    font-weight: 900;
}
.gallery-thankyou-card p {
    margin: 2px 0 0;
    color: #111;
    font-size: 30px;
    font-weight: 700;
}

@media (max-width: 1024px) {
  .projects-pill { font-size: 32px; }
  .projects-desc { font-size: 25px; }
  .projects-cards { grid-template-columns: 1fr; }
  .project-showcase-card { min-height: 300px; }
  .project-showcase-card h3 { font-size: 26px; }
  .gallery-thankyou-card h2 span { font-size: 72px; }
  .gallery-thankyou-card p { font-size: 34px; }
}
.gallery-lab-dotline .dot-2 {
    margin-left: 6px;
}
.gallery-lab-top h3 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.08;
    margin: 6px 0 3px;
}
.gallery-lab-top p {
    font-size: 20px;
    font-weight: 600;
}
.gallery-lab-wave {
    position: relative;
    min-height: 520px;
    padding: 0;
    margin-top: -24px;
    overflow: hidden;
}
.gallery-lab-wave-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.gallery-top-curve {
    position: absolute;
    top: 0;
    left: -41%;
    width: 41%;
    height: 73px;
    background: #f5f5f5;
    border-bottom-left-radius: 60% 100%;
    border-bottom-right-radius: 60% 100%;
    z-index: 2;
}
.gallery-lab-content,
.gallery-lab-cards,
.gallery-lab-bottom-dots {
    position: relative;
    z-index: 2;
}
.gallery-lab-content {
    position: relative;
}
.gallery-lab-cards {
    align-self: center;
}
.gallery-lab-content {
    transform: translateY(38px);
}
.gallery-lab-wave {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 16px;
    padding-left: 5vw;
    padding-right: 5vw;
}
.gallery-badge {
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, #ff0000 0%, #830000 72%);
    color: #fff;
    font-size: 45px;
    font-weight: 700;
    font-family: "Dancing Script", cursive;
    box-shadow: 0 0 0 2px #ffffff60;
    margin-bottom: 0;
    z-index: 1;
}
.gallery-lab-kicker {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-top: 89px;
    margin-bottom: 6px;
}
.gallery-lab-content h2 {
    color: #fff;
    font-size: 60px;
    line-height: 1.02;
    font-weight: 900;
    max-width: 780px;
    margin: 0;
}
.gallery-lab-cards {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
    overflow: visible;
    z-index: 12;
}
.three-d-hover-gallery {
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 13;
}
.three-d-hover-gallery__track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 14;
}
.three-d-hover-gallery__item {
    position: relative;
    z-index: 15;
}
.three-d-hover-gallery__item:hover,
.three-d-hover-gallery__item:focus-visible {
    z-index: 1000 !important;
}
.lab-card {
    width: 118px;
    height: 410px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}
.lab-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-lab-bottom-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
}
.gallery-lab-bottom-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #d1000f;
    border-radius: 999px;
}
.gallery-lab-bottom-dots .dot-2 {
    margin-left: 8px;
}

@media (max-width: 1024px) {
    .gallery-lab-top h3 {
        font-size: 34px;
    }
    .gallery-lab-top p {
        font-size: 15px;
    }
    .gallery-lab-wave {
        min-height: 460px;
        margin-top: -16px;
        grid-template-columns: 1fr;
        padding-left: 16px;
        padding-right: 16px;
    }
    .gallery-lab-wave-svg {
        height: 460px;
    }
    .gallery-top-curve {
        height: 62px;
    }
    .gallery-badge {
        width: 92px;
        height: 92px;
        font-size: 31px;
        top: -46px;
    }
    .gallery-lab-content {
        text-align: center;
    }
    .gallery-lab-content {
        transform: none;
    }
    .gallery-lab-kicker {
        font-size: 28px;
    }
    .gallery-lab-content h2 {
        font-size: 44px;
        max-width: 100%;
    }
    .gallery-lab-cards {
        justify-self: center;
        gap: 8px;
        margin-top: 10px;
    }
    .three-d-hover-gallery__track {
        justify-content: center;
    }
    .lab-card {
        width: 92px;
        height: 250px;
        border-radius: 10px;
    }
    .gallery-lab-bottom-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
    }
}

@media (max-width: 640px) {
    .gallery-lab-top h3 {
        font-size: 30px;
    }
    .gallery-lab-top p {
        font-size: 13px;
    }
    .gallery-lab-wave {
        min-height: 420px;
        margin-top: -10px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .gallery-lab-wave-svg {
        height: 420px;
    }
    .gallery-top-curve {
        height: 54px;
    }
    .gallery-lab-kicker {
        font-size: 22px;
    }
    .gallery-badge {
        top: -44px;
    }
    .gallery-lab-content h2 {
        font-size: 50px;
        line-height: 1.06;
    }
    .gallery-lab-cards {
        gap: 6px;
    }
    .lab-card {
        width: 74px;
        height: 210px;
    }
}
