.day-page {
    font-family: "About Text", "Nunito", sans-serif;
    padding-bottom: 64px;
}

.day-page-hero {
    position: relative;
    overflow: hidden;
}

.day-page-hero-content {
    position: relative;
    padding: 32px 0 72px;
    min-height: 500px;
}

.day-page-hero .breadcrumbs {
    position: relative;
    z-index: 1;
    margin-bottom: 104px;
    font-size: 14px;
}

.day-page-visual {
    position: absolute;
    inset: 0 0 0 auto;
    width: 61%;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, #000 16%), linear-gradient(to bottom, #000 85%, transparent);
    mask-composite: intersect;
}

.day-page-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.day-page-intro {
    position: relative;
    z-index: 1;
    max-width: 43%;
    padding-left: 16px;
}

.day-page-intro h1 {
    font-family: "About Hand", "Pangolin", cursive;
    font-size: 88px;
    letter-spacing: -2px;
    line-height: 1.05;
    -webkit-text-stroke: 1px currentColor;
}

.day-page-intro h1 .heart {
    display: inline-block;
    vertical-align: top;
    width: 30px;
    height: 34px;
    margin-left: 8px;
}

.day-page-intro > p {
    font-size: 23px;
    line-height: 1.4;
    color: #60656e;
    max-width: 500px;
    margin-top: 24px;
}

.day-page .day-intro-flower {
    width: 48px;
    height: 48px;
    top: -64px;
    left: 16px;
}

.day-page .day-intro-flower-small {
    width: 25px;
    height: 25px;
    top: -42px;
    left: 84px;
}

.day-intro-cloud {
    width: 125px;
    position: absolute;
    right: 0;
    top: -112px;
    mix-blend-mode: multiply;
}

.day-gallery {
    padding-block: 24px 64px;
}

.gallery-tabs {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.gallery-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 40px;
    background: #fffefbdc;
    color: #34373c;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    flex: 1;
    box-shadow: 0 4px 16px #aa8b6e08;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.gallery-tabs button[aria-selected="true"] {
    background: var(--coral);
    color: white;
    border-color: #e26363;
    box-shadow: inset 0 0 0 4px #ffffff12;
}

.gallery-tabs button:hover:not([aria-selected="true"]) {
    background: #fff0e9;
}

.gallery-tabs svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.day-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.day-photo-tile {
    position: relative;
    display: block;
    aspect-ratio: 1.3;
    width: 100%;
    border: 0;
    padding: 0;
    border-radius: 22px;
    background: #f2eadd;
    overflow: hidden;
    cursor: zoom-in;
}

.day-photo-tile > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.day-photo-tile:hover > img {
    transform: scale(1.035);
}

.photo-expand {
    display: grid;
    place-items: center;
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #343b42;
    background: #fffcf7e6;
    opacity: 0;
    transition: opacity .2s;
}

.photo-expand svg {
    width: 20px;
    height: 20px;
}

.day-photo-tile:hover .photo-expand, .day-photo-tile:focus-visible .photo-expand {
    opacity: 1;
}

.day-page-invitation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: #edf8fcd9;
    border-radius: 48px;
    padding: 48px 64px;
    position: relative;
    overflow: hidden;
}

.day-page-invitation > div {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.day-page-invitation h2 {
    font-family: "About Hand", "Pangolin", cursive;
    font-size: 38px;
    letter-spacing: -.6px;
    line-height: 1.2;
}

.day-page-invitation h2 .heart {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 34px;
    margin-left: 8px;
}

.day-page-invitation p {
    font-size: 18px;
    color: #666d77;
    line-height: 1.5;
    margin-top: 16px;
    max-width: 710px;
}

.day-page-invitation .button {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.day-page .day-invitation-flower {
    right: 18px;
    bottom: 8px;
    opacity: .7;
    width: 40px;
    height: 40px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 64px 80px;
    background: transparent;
    color: white;
}

.gallery-lightbox::backdrop {
    background: #24252be8;
    backdrop-filter: blur(8px);
}

.gallery-lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox-content {
    width: min(100%, 1200px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    pointer-events: none;
}

.lightbox-content figure {
    margin: 0;
    max-width: calc(100% - 144px);
    pointer-events: auto;
}

.lightbox-content figure > img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 190px);
    object-fit: contain;
    margin: auto;
    border-radius: 18px;
}

.lightbox-content figcaption {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 16px;
    font-size: 16px;
    line-height: 1.4;
    color: #f1ece7;
}

.lightbox-content figcaption span {
    white-space: nowrap;
    color: #d7cfc7;
}

.lightbox-close, .lightbox-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ffffff45;
    border-radius: 50%;
    background: #ffffff12;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
}

.lightbox-arrow:disabled {
    opacity: .25;
    cursor: default;
}

.lightbox-close svg, .lightbox-arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox-close:hover, .lightbox-arrow:not(:disabled):hover {
    background: #ffffff30;
}

@media (max-width: 1440px) {
    .day-page-hero-content {
        min-height: 460px;
        padding-bottom: 56px;
    }

    .day-page-intro h1 {
        font-size: 76px;
    }

    .day-page-intro > p {
        font-size: 21px;
    }

    .gallery-tabs {
        gap: 16px;
    }

    .gallery-tabs button {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 56px;
        gap: 10px;
    }

    .gallery-tabs svg {
        width: 26px;
        height: 26px;
    }

    .day-page-invitation {
        padding: 40px 48px;
        gap: 32px;
    }

    .day-page-invitation h2 {
        font-size: 34px;
    }

    .day-page-invitation p {
        font-size: 16px;
    }

    .day-page-invitation .button {
        font-size: 14px;
        padding-inline: 24px;
    }
}

@media (max-width: 1200px) {
    .day-page-hero-content {
        min-height: 400px;
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .day-page-hero .breadcrumbs {
        margin-bottom: 88px;
    }

    .day-page-intro {
        max-width: 45%;
        padding-left: 8px;
    }

    .day-page-intro h1 {
        font-size: 60px;
        letter-spacing: -1px;
    }

    .day-page-intro h1 .heart {
        width: 24px;
        height: 28px;
    }

    .day-page-intro > p {
        font-size: 18px;
        margin-top: 20px;
    }

    .day-intro-cloud {
        width: 100px;
    }

    .day-page .day-intro-flower {
        top: -58px;
        width: 40px;
        height: 40px;
    }

    .gallery-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-tabs button {
        font-size: 15px;
        min-height: 52px;
        padding: 12px 16px;
    }

    .day-photo-grid {
        gap: 12px;
    }

    .day-photo-tile {
        border-radius: 18px;
    }

    .day-page-invitation {
        padding: 32px;
        gap: 24px;
    }

    .day-page-invitation h2 {
        font-size: 30px;
    }

    .day-page-invitation .button {
        padding-inline: 20px;
        font-size: 13px;
        min-height: 56px;
    }
}

@media (max-width: 700px) {
    .day-page {
        padding-bottom: 40px;
    }

    .day-page-hero {
        display: flex;
        flex-direction: column;
    }

    .day-page-hero-content {
        order: 1;
        min-height: 0;
        padding-top: 16px;
        padding-bottom: 0;
    }

    .day-page-hero .breadcrumbs {
        font-size: 12px;
        margin-bottom: 80px;
    }

    .day-page-intro {
        padding-left: 0;
        max-width: none;
    }

    .day-page-intro h1 {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .day-page-intro h1 .heart {
        width: 26px;
        height: 30px;
    }

    .day-page-intro > p {
        font-size: 17px;
        margin-top: 20px;
        max-width: none;
    }

    .day-page .day-intro-flower {
        left: 0;
        top: -52px;
        width: 36px;
        height: 36px;
    }

    .day-page .day-intro-flower-small {
        left: 52px;
        top: -36px;
        width: 22px;
        height: 22px;
    }

    .day-intro-cloud {
        right: 12px;
        width: 90px;
        top: -70px;
    }

    .day-page-visual {
        position: relative;
        order: 2;
        width: 100%;
        margin-top: 16px;
        mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 84%, transparent);
    }

    .day-page-visual img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .day-gallery {
        padding-block: 8px 40px;
    }

    .gallery-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 20px;
    }

    .gallery-tabs button {
        font-size: 14px;
        gap: 8px;
        padding: 12px 10px;
        min-height: 48px;
    }

    .gallery-tabs svg {
        width: 24px;
        height: 24px;
    }

    .day-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .day-photo-tile {
        aspect-ratio: 1;
        border-radius: 16px;
    }

    .day-page-invitation {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px 36px;
        border-radius: 30px;
        gap: 24px;
    }

    .day-page-invitation h2 {
        font-size: 31px;
    }

    .day-page-invitation h2 .heart {
        margin-left: 0;
        width: 26px;
        height: 30px;
    }

    .day-page-invitation p {
        font-size: 16px;
    }

    .day-page-invitation .button {
        width: 100%;
        font-size: 13px;
        padding: 16px 12px;
        gap: 10px;
    }

    .gallery-lightbox {
        padding: 72px 12px 24px;
    }

    .lightbox-close {
        right: 16px;
        top: 16px;
    }

    .lightbox-content {
        position: relative;
        padding-bottom: 68px;
        gap: 0;
    }

    .lightbox-content figure {
        max-width: 100%;
        width: 100%;
    }

    .lightbox-content figure > img {
        max-height: calc(100dvh - 260px);
        border-radius: 14px;
    }

    .lightbox-content figcaption {
        font-size: 14px;
        gap: 12px;
        padding: 14px 4px 0;
    }

    .lightbox-arrow {
        position: absolute;
        bottom: 0;
    }

    .lightbox-previous {
        left: calc(50% - 60px);
    }

    .lightbox-next {
        right: calc(50% - 60px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .day-photo-tile > img, .photo-expand, .gallery-tabs button {
        transition: none;
    }

    .day-photo-tile:hover > img {
        transform: none;
    }
}
