/* Global body styling */
/* style.css */
body {
    font-family: 'Times', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #ffc5e9;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-title {
    font-size: 3rem;
    color: red;
    letter-spacing: 0px;
    pointer-events: auto;
    margin: 0;
    font-weight: normal;
    -webkit-text-stroke: .75pt red;
}

.section-title {
    font-size: 1rem;
    text-decoration: underline;
    color: red;
    margin: 5px 0;
    margin-left: -10px;
    letter-spacing: 0px;
    padding: 0px 0;
    width: 100%;
}

.title {
    font-size: 1rem;
    text-transform: uppercase;
    color: red;
    margin: 5px 0;
    letter-spacing: 0px;
    padding: 0;
    align-self: center;
    width: 100%;
    font-weight: normal;
}

.links {
    align-items: flex-start;
    width: 100%;
}

.links,
.bottom-links {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 0;
}

.links a,
.bottom {
    font-size: 1rem;
    text-decoration: none;
    color: red;
}

.links a:hover,
.bottom:hover,
.back-button:hover,
.email:hover {
    color: black;
}

.bottom-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 0px;
    width: 100%;
    margin: 40px auto;
    padding: 10px 20px;
}

.inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 2px;
    cursor: pointer;
}

.inline-link:hover {
    color: black;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;   /* important fix */
    width: min(92vw, 400);  /* responsive width */
    margin-left: auto;
    margin-right: auto;
    gap: 35px;
    padding: 60px 0;
}


.divider {
    width: 20px;
    height: 5px;
    background-color: red;
    margin: 5px 0;
}

.back-button {
    font-size: 1rem;
    text-decoration: underline;
    color: red;
    margin: 0px 0;
    align-self: flex-start;
}

.gallery {
    width: min(96vw, 720px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 22px;

    align-self: center;
}

.gallery-img {
    width: 100%;
    height: auto;

    object-fit: cover;

    cursor: pointer;

    aspect-ratio: 3 / 2;
}

.gallery-img.large {
    grid-column: span 2;
    grid-row: span 2;

    aspect-ratio: auto;
}

.gallery-img.wide {
    grid-column: span 2;
}

.gallery-img.tall {
    grid-row: span 2;
}

@media (max-width: 900px) {

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-img.large,
    .gallery-img.wide {
        grid-column: span 2;
    }

}

@media (max-width: 500px) {

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-img.large,
    .gallery-img.wide,
    .gallery-img.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

}


img {
    max-width: 95%;
    gap: 20px;
    height: auto;
    max-height: 1920px;
    cursor: pointer;
}

.fullscreen-img {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: default;
}

.fullscreen-img img {
    max-width: 95%;
    max-height: 95%;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    pointer-events: none;
}


.fullscreen-img.prev {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ctext x='24' y='35' text-anchor='middle' font-size='36' fill='white'%3E%E2%86%90%3C/text%3E%3C/svg%3E") 24 24, auto;
}

.fullscreen-img.next {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ctext x='24' y='35' text-anchor='middle' font-size='36' fill='white'%3E%E2%86%92%3C/text%3E%3C/svg%3E") 24 24, auto;
}


.fullscreen-img.close {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ctext x='24' y='36' text-anchor='middle' font-size='38' fill='white'%3E%C3%97%3C/text%3E%3C/svg%3E") 24 24, auto;
}


.text {
    text-align: justify;
    font-size: 1rem;
    text-decoration: none;
    color: red;
    padding: 0 12.5%;
    box-sizing: border-box;
    max-width: 720px;
    margin: 0 auto;
    line-height: 150%;
    width: 100%;
}

.video {
    width: 100%;
    margin: 0 auto;
    gap: 20px;
    padding: 0 12.5%;
    box-sizing: border-box;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.email {
    font-size: 1.2rem;
    margin: 20px 0;
    color: red;
    text-decoration: none;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* <-- FIX: change from baseline to center */
    position: sticky;
    top: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    height: 120px;
    background-color: #ffc5e9; /* Optional: ensure background covers sticky area */
    z-index: 100;
}

.header-side {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-side.right {
    justify-content: center;
    position: inherit;
    display: flex;
    align-items: center;
}

.header-center {
    position:relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    pointer-events: none; /* optional: allows interaction to pass through */
}

.back-button {
    font-size: 3rem;
    color: red;
    text-decoration: none;
    margin-bottom: 10px;
}

.back-button:hover {
    color: black;
}

  
 