/*--------------------------------------------------------------
  Events & Celebrations section (about.html)
  Photo gallery + click-to-play video card
--------------------------------------------------------------*/
.nrs_event_section {
    padding: 60px 0;
    background-color: transparent;
}

.nrs_event_section .cs_section_subtitle_styled {
    background-color: #f5f5f7;
    color: #0b1c2c;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nrs_event_intro {
    max-width: 720px;
    margin: 18px auto 0;
    color: #555;
    font-size: 16px;
    line-height: 1.625;
}

.nrs_event_layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 1100px;
    margin: 50px auto 0;
}

/* ---------- Video card (9:16) ---------- */
.nrs_event_video_card {
    margin: 0;
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nrs_event_video {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 */
    border-radius: 20px;
    overflow: hidden;
    background-color: #0b1c2c;
}

.nrs_event_video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    display: block;
}

.nrs_event_video_play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.nrs_event_video_play img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nrs_event_video_play::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.nrs_event_video_play svg {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.nrs_event_video_play:hover svg {
    transform: scale(1.08);
}

.nrs_event_video_duration {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(11, 28, 44, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.nrs_event_video.is-active .nrs_event_video_play {
    display: none;
}

.nrs_event_video_msg {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(11, 28, 44, 0.92);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.nrs_event_video_msg[hidden] {
    display: none;
}

.nrs_event_video.is-error .nrs_event_video_duration {
    display: none;
}

.nrs_event_video_caption {
    margin: 0;
    padding: 18px 6px 6px;
    text-align: center;
    color: #0b1c2c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Photo gallery ---------- */
.nrs_event_gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nrs_event_gallery li {
    margin: 0;
    padding: 0;
}

.nrs_event_photo {
    position: relative;
    display: block;
    padding-top: 75%; /* 4:3 */
    border-radius: 20px;
    overflow: hidden;
    background-color: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.02);
    cursor: zoom-in;
}

.nrs_event_photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nrs_event_photo:hover img,
.nrs_event_photo:focus-visible img {
    transform: scale(1.04);
}

.nrs_event_photo_icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0b1c2c;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}

.nrs_event_photo:hover .nrs_event_photo_icon {
    transform: scale(1.1);
}

.nrs_event_photo:focus-visible,
.nrs_event_video_play:focus-visible {
    outline: 3px solid #0b1c2c;
    outline-offset: 3px;
}

/* Fullscreen viewer captions (lightGallery instance for this section only) */
.nrs_event_lg .lg-sub-html {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #0b1c2c; /* the site's viewer theme uses a white backdrop */
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .nrs_event_layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 40px;
    }

    .nrs_event_video_card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .nrs_event_section {
        padding: 50px 0;
    }

    .nrs_event_intro {
        font-size: 15px;
    }

    .nrs_event_gallery {
        gap: 12px;
    }

    .nrs_event_photo {
        border-radius: 14px;
    }

    .nrs_event_photo_icon {
        right: 8px;
        bottom: 8px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nrs_event_photo img,
    .nrs_event_photo_icon,
    .nrs_event_video_play svg {
        transition: none;
    }

    .nrs_event_photo:hover img,
    .nrs_event_photo:focus-visible img {
        transform: none;
    }
}
