/* ==========================================================================
   Events / Event Gallery / Album — shared styles
   Loaded AFTER default.css + responsive.css.
   Reuses existing brand tokens instead of redefining them:
     fonts   : var(--font-main) / var(--font-medium) / var(--font-regular)
     colors  : #1D0039 (deep purple), #8636d0 (accent purple),
               #533A6C (muted purple text), #E4DDEB (light bg / --dark-background)
   ========================================================================== */

/* ---------- page-heading banners (reuses existing card-bg.png asset) ---------- */
.img-events,
.img-event-gallery,
.img-album {
    background: url(../assets/images/bg-img/card-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 10px;
}

/* ---------- section wrappers (mirrors .photos-section / .videosection pattern) ---------- */
.events-listing-section,
.event-gallery-section,
.album-section {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #1D0039;
}

.events-listing-section > .container > h1,
.event-gallery-section > .container > h1,
.album-section > .container > h1 {
    font-family: var(--font-main);
    color: #ffff;
    font-size: 25px;
    text-align: center;
    margin-bottom: 40px;
}

.section-subtext {
    font-family: var(--font-regular);
    color: var(--dark-background);
    text-align: center;
    font-size: 14px;
    margin-top: -25px;
    margin-bottom: 40px;
}

/* ---------- breadcrumb wraps cleanly for long event titles ---------- */
.page-heading-section > ul {
    flex-wrap: wrap;
}

/* ---------- Event / Sub-event cards ---------- */
.event-card-link,
.subevent-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    transition: transform 0.35s ease;
}

.event-card-link:hover,
.subevent-card-link:hover {
    transform: translateY(-6px);
}

.event-card,
.subevent-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.event-card .card-img-top,
.subevent-card .card-img-top {
    height: 210px;
    object-fit: cover;
    width: 100%;
}

.event-card .card-body,
.subevent-card .card-body {
    padding: 20px 22px 22px;
}

.event-card .card-body h4,
.subevent-card .card-body h4 {
    font-family: var(--font-main);
    font-size: 17px;
    color: #1D0039;
    margin-bottom: 14px;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.event-meta span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-regular);
    font-size: 13px;
    color: #533A6C;
}

.event-meta svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    margin-top: 2px;
    fill: #8636d0;
}

/* ---------- reusable pill button (styles the existing but previously-unstyled .btn-2) ---------- */
.btn-2 {
    display: inline-block;
    font-family: var(--font-medium);
    font-size: 13px;
    color: #ffffff !important;
    background-color: #8636d0;
    padding: 9px 20px;
    border-radius: 30px;
}

.btn-2:hover {
    background-color: #1D0039;
    color: #ffffff;
}

/* ---------- empty / not-found state ---------- */
.empty-state {
    text-align: center;
    color: #ffffff;
    font-family: var(--font-regular);
    font-size: 15px;
    padding: 30px 0;
}

.empty-state a {
    color: #E4DDEB;
    text-decoration: underline;
}

/* ---------- Album thumbnail grid ---------- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.album-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.album-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.album-item:hover img {
    transform: scale(1.06);
}

.album-item .media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(29, 0, 57, 0.75);
    color: #ffffff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--font-regular);
}

.album-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    fill: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* ---------- responsive ---------- */
@media only screen and (max-width: 992px) {
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 768px) {

    .events-listing-section,
    .event-gallery-section,
    .album-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .album-item img {
        height: 160px;
    }
}

@media only screen and (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr;
    }
}
