:root {
    --ink: #263238;
    --muted: #697684;
    --blue: #748ba7;
    --blue-dark: #536d8d;
    --rose: #e7a9c7;
    --champagne: #f7e7ce;
    --mint: #d8eadf;
    --paper: #fffdf9;
    --surface: rgba(255, 255, 255, 0.84);
    --line: rgba(38, 50, 56, 0.1);
    --shadow: 0 18px 50px rgba(34, 45, 56, 0.12);
    --shadow-soft: 0 10px 28px rgba(34, 45, 56, 0.08);
    --speed: 0.32s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 18% 18%, rgba(231, 169, 199, 0.16), transparent 28%),
        radial-gradient(circle at 82% 10%, rgba(116, 139, 167, 0.12), transparent 30%),
        linear-gradient(180deg, #f9fbfd 0%, #fffaf2 45%, #f8fbf8 100%);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section-title {
    color: var(--ink);
    font-family: "Pacifico", cursive;
    font-size: clamp(2.2rem, 6vw, 3.7rem);
    font-weight: 400;
    margin-bottom: 64px;
    text-align: center;
}

.section-title::after {
    background: linear-gradient(90deg, var(--blue), var(--rose), var(--mint));
    border-radius: 999px;
    content: "";
    display: block;
    height: 6px;
    margin: 20px auto 0;
    width: 86px;
}

.navbar {
    left: 0;
    padding: 20px 0;
    position: fixed;
    top: 0;
    transition: var(--speed);
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled,
.navbar.nav-open {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: min(1200px, calc(100% - 40px));
}

.logo {
    color: var(--ink);
    font-family: "Pacifico", cursive;
    font-size: 1.75rem;
    text-decoration: none;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 26px;
    list-style: none;
}

.nav-links a {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--speed);
}

.nav-links a:hover {
    color: var(--blue-dark);
}

.burger {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    height: 44px;
    place-items: center;
    width: 44px;
}

.burger span {
    background: var(--ink);
    border-radius: 999px;
    display: block;
    height: 3px;
    margin: 4px 0;
    transition: var(--speed);
    width: 25px;
}

.burger.toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    align-items: center;
    color: white;
    display: flex;
    height: 100svh;
    justify-content: center;
    min-height: 620px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    inset: 0;
    position: absolute;
    transform: scale(1.08);
    transition: transform 9s linear;
    z-index: -2;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.sunlight {
    animation: sunlightMove 16s infinite alternate linear;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 68%);
    height: 150%;
    left: -25%;
    pointer-events: none;
    position: absolute;
    top: -28%;
    width: 150%;
    z-index: 1;
}

.hero-content {
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.handwritten-title {
    font-family: "Pacifico", cursive;
    font-size: clamp(3rem, 9vw, 5.4rem);
    font-weight: 400;
    margin-bottom: 18px;
    text-shadow: 2px 6px 18px rgba(0, 0, 0, 0.34);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 500;
    margin: 0 auto 36px;
    max-width: 780px;
    text-shadow: 1px 3px 12px rgba(0, 0, 0, 0.3);
}

.btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    text-decoration: none;
    transition: var(--speed);
}

.btn-primary {
    background: var(--blue);
    box-shadow: 0 12px 30px rgba(83, 109, 141, 0.32);
    color: #fff;
    font-weight: 800;
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-3px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--blue);
    color: var(--blue-dark);
    cursor: pointer;
    font-weight: 800;
}

.btn-outline:hover {
    background: var(--blue);
    color: white;
}

.scroll-indicator {
    bottom: 26px;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    left: 50%;
    letter-spacing: 2px;
    position: absolute;
    text-transform: uppercase;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    border: 2px solid currentColor;
    border-radius: 999px;
    height: 40px;
    margin: 10px auto 0;
    position: relative;
    width: 25px;
}

.mouse::before {
    animation: scrollMouse 1.5s infinite;
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 8px;
    left: 50%;
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    width: 4px;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    justify-content: center;
}

.member-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    overflow: hidden;
    transition: var(--speed);
    width: min(280px, 100%);
}

.member-card.is-hidden,
.timeline-item.is-hidden {
    display: none;
}

.member-card:hover {
    border-color: rgba(116, 139, 167, 0.55);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
}

.member-img-wrapper {
    border-radius: 18px;
    height: 300px;
    margin: 12px;
    overflow: hidden;
    position: relative;
}

.member-img-wrapper img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
    width: 100%;
}

.member-card:hover img {
    transform: scale(1.08);
}

.member-overlay {
    align-items: center;
    background: linear-gradient(180deg, rgba(116, 139, 167, 0.1), rgba(83, 109, 141, 0.92));
    color: white;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: flex-end;
    opacity: 0;
    padding: 28px;
    position: absolute;
    transform: translateY(18px);
    transition: var(--speed);
}

.member-card:hover .member-overlay {
    opacity: 1;
    transform: translateY(0);
}

.quote {
    font-family: "Dancing Script", cursive;
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 16px;
    text-align: center;
}

.view-more {
    align-items: center;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 8px;
}

.member-info {
    align-items: center;
    display: flex;
    height: 68px;
    justify-content: center;
    padding: 0 20px 18px;
    text-align: center;
}

.name-container {
    min-height: 38px;
    position: relative;
    width: 100%;
}

.member-name,
.member-nickname {
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 800;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--speed);
    width: 100%;
}

.member-nickname {
    color: var(--blue-dark);
    font-style: italic;
    opacity: 0;
    transform: translateY(8px);
}

.member-card:hover .member-name {
    opacity: 0;
    transform: translateY(-22px);
}

.member-card:hover .member-nickname {
    opacity: 1;
    transform: translateY(-50%);
}

.load-more-container {
    margin-top: 54px;
    text-align: center;
}

.gallery-grid {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    display: grid;
    gap: 14px;
    grid-auto-flow: dense;
    grid-auto-rows: 220px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    max-height: 640px;
    overflow-y: auto;
    padding: 12px;
}

.gallery-grid::-webkit-scrollbar {
    width: 8px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 999px;
}

.gallery-item {
    background: #dde5ec;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    min-height: 160px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

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

.timeline-container {
    margin: 0 auto;
    max-width: 860px;
    position: relative;
}

.timeline-line {
    background: linear-gradient(180deg, var(--blue), var(--rose));
    border-radius: 999px;
    height: 100%;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 4px;
}

.timeline-item {
    display: flex;
    margin-bottom: 48px;
    position: relative;
    width: 100%;
}

.timeline-item.left {
    justify-content: flex-start;
    text-align: right;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-dot {
    background: var(--paper);
    border: 4px solid var(--blue);
    border-radius: 50%;
    height: 20px;
    left: 50%;
    position: absolute;
    top: 22px;
    transform: translateX(-50%);
    width: 20px;
    z-index: 2;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: var(--speed);
    width: 45%;
}

.timeline-card:hover {
    transform: translateY(-4px);
}

.timeline-card .date {
    color: var(--blue-dark);
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    border: 0;
    height: 100%;
    width: 100%;
}

.sticky-notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    overflow: hidden;
    padding: 20px 0;
    transition: max-height 0.6s ease;
}

.sticky-notes-container.collapsed {
    max-height: 520px;
}

.sticky-note {
    box-shadow: 8px 12px 25px rgba(42, 49, 57, 0.14);
    color: #3f454b;
    display: flex;
    flex-direction: column;
    font-family: "Dancing Script", cursive;
    font-size: 1.26rem;
    justify-content: space-between;
    min-height: 198px;
    padding: 22px;
    position: relative;
    transform: rotate(var(--rotate, -2deg));
    transition: var(--speed);
    width: 205px;
}

.sticky-note:nth-child(2n) { --rotate: 4deg; }
.sticky-note:nth-child(3n) { --rotate: -5deg; }
.sticky-note:nth-child(4n) { --rotate: 3deg; }

.sticky-note:hover {
    transform: rotate(0deg) scale(1.06);
    z-index: 4;
}

.sticky-note.color-1 { background: #fff59d; }
.sticky-note.color-2 { background: #f8bbd0; }
.sticky-note.color-3 { background: #c8e6c9; }
.sticky-note.color-4 { background: #b3e5fc; }
.sticky-note.color-5 { background: #e1bee7; }
.sticky-note.color-6 { background: #ffccbc; }

.sticky-note .signature {
    color: #30363b;
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: 12px;
    text-align: right;
}

.sticky-note i {
    color: rgba(0, 0, 0, 0.12);
    position: absolute;
    right: 12px;
    top: 10px;
}

.modal {
    align-items: center;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 22px;
    position: fixed;
    z-index: 2000;
}

.modal.is-open {
    display: flex;
}

.modal-main-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 920px;
    width: 100%;
}

.modal-content {
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
    max-height: 78vh;
    object-fit: contain;
    width: auto;
}

#caption {
    color: white;
    font-weight: 700;
    margin-top: 14px;
    text-align: center;
}

.close-modal,
.modal-nav-btn {
    align-items: center;
    border: 0;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 2100;
}

.close-modal {
    background: transparent;
    font-size: 2.5rem;
    right: 30px;
    top: 24px;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 1.5rem;
    height: 58px;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
}

.modal-nav-btn.prev {
    left: 38px;
}

.modal-nav-btn.next {
    right: 38px;
}

.reaction-container {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: flex;
    gap: 10px;
    margin-top: 22px;
    padding: 10px 16px;
}

.reaction-item {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.reaction-item:hover {
    transform: translateY(-7px) scale(1.2);
}

.floating-emoji,
.rain-emoji {
    pointer-events: none;
    position: fixed;
    z-index: 2200;
}

.floating-emoji {
    animation: floatUp 1.4s ease-out forwards;
    font-size: 2rem;
}

.rain-emoji {
    animation: fallDown 3.7s linear forwards;
    font-size: 2.3rem;
    top: -80px;
}

.profile-modal {
    background: rgba(15, 20, 26, 0.52);
}

.modal-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(13, 20, 30, 0.25);
    max-width: 500px;
    opacity: 0;
    padding: 38px;
    position: relative;
    transform: scale(0.94);
    transition: var(--speed);
    width: min(92vw, 500px);
}

.modal.is-open .modal-card {
    opacity: 1;
    transform: scale(1);
}

.close-profile,
.close-music {
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.6rem;
    opacity: 0.55;
    position: absolute;
    right: 22px;
    top: 18px;
}

.profile-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-header img {
    border: 4px solid var(--blue);
    border-radius: 24px;
    height: 142px;
    object-fit: cover;
    width: 142px;
}

.profile-info h3 {
    font-size: 1.65rem;
}

.nickname {
    color: var(--blue-dark);
    font-weight: 800;
}

.profile-body {
    border-top: 1px solid var(--line);
    padding-top: 26px;
}

.profile-field {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-field i {
    align-items: center;
    background: rgba(116, 139, 167, 0.12);
    border-radius: 10px;
    color: var(--blue-dark);
    display: flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
}

.profile-field strong {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.music-player-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
    padding-bottom: 20px;
}

.album-disc {
    animation: rotateDisc 12s linear infinite;
    animation-play-state: paused;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    flex: 0 0 102px;
    height: 102px;
    overflow: hidden;
    width: 102px;
}

.music-modal.playing .album-disc {
    animation-play-state: running;
}

.album-disc img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.player-info {
    min-width: 0;
}

.song-title-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

#currentSongTitle {
    font-size: 1.16rem;
    margin-bottom: 4px;
}

#currentSongArtist {
    color: var(--blue-dark);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 13px;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.player-controls button {
    align-items: center;
    background: rgba(116, 139, 167, 0.12);
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.music-list-container {
    max-height: 285px;
    overflow-y: auto;
    padding-right: 6px;
}

.music-option {
    align-items: center;
    background: rgba(116, 139, 167, 0.08);
    border: 1px solid rgba(116, 139, 167, 0.12);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    padding: 10px;
    text-align: left;
    transition: var(--speed);
    width: 100%;
}

.music-option:hover,
.music-option.active {
    background: var(--blue);
    color: white;
}

.music-option img {
    border-radius: 12px;
    height: 52px;
    object-fit: cover;
    width: 52px;
}

.music-option strong,
.music-option small {
    display: block;
}

.music-option small {
    opacity: 0.78;
}

.gatekeeper-overlay {
    align-items: center;
    background: rgba(236, 242, 248, 0.98);
    contain: layout paint;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    z-index: 9999;
}

.gatekeeper-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.gate-card {
    background: white;
    border: 1px solid rgba(116, 139, 167, 0.14);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(38, 50, 56, 0.18);
    max-width: 520px;
    padding: 28px;
    text-align: center;
    width: min(100%, 520px);
}

.gate-card.is-answering,
.gate-card.blur-all {
    pointer-events: none;
}

.gate-img {
    border-radius: 22px;
    height: 220px;
    margin-bottom: 24px;
    object-fit: cover;
    width: 100%;
}

.gate-question {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 26px;
}

.gate-options {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}

.gate-btn {
    background: #f7f9fb;
    border: 2px solid rgba(116, 139, 167, 0.13);
    border-radius: 16px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    min-height: 58px;
    padding: 12px;
    transition: var(--speed);
    touch-action: manipulation;
}

.gate-btn:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
    transform: translateY(-3px);
}

.gate-btn.correct {
    background: #4ade80;
    border-color: #4ade80;
    color: white;
}

.gate-btn.wrong {
    animation: gateShake 0.38s ease;
    background: #f87171;
    border-color: #f87171;
    color: white;
}

.gate-alert {
    background: white;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    contain: content;
    left: 50%;
    opacity: 0;
    padding: 26px 34px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    visibility: hidden;
    will-change: opacity, transform;
    z-index: 10001;
}

.gate-alert.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
}

.gate-alert.success {
    background: #f0fdf4;
}

.gate-alert.error {
    background: #fef2f2;
}

.gate-alert p {
    font-size: 1.1rem;
    font-weight: 800;
}

.alert-content {
    text-align: center;
}

.alert-gif {
    border-radius: 18px;
    display: block;
    height: 118px;
    margin: 0 auto 16px;
    object-fit: cover;
    width: 118px;
}

.alert-gif[hidden] {
    display: none;
}

.footer {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid var(--line);
    padding: 34px 0;
    text-align: center;
}

.footer a {
    color: var(--blue-dark);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 8px;
    text-decoration: none;
}

.animate-up,
.animate-up-delay,
.animate-up-delay-2 {
    animation: fadeUp 0.85s ease forwards;
    opacity: 0;
}

.animate-up-delay {
    animation-delay: 0.18s;
}

.animate-up-delay-2 {
    animation-delay: 0.34s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sunlightMove {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(5%, 4%) rotate(14deg); }
}

@keyframes scrollMouse {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes floatUp {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-145px) translateX(var(--random-x, 0)) rotate(var(--random-rotate, 0deg)); }
}

@keyframes fallDown {
    0% { opacity: 0; transform: translateY(0) rotate(0deg); }
    10%, 90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(120vh) rotate(360deg); }
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@media (max-width: 900px) {
    .nav-links {
        align-items: center;
        background: white;
        box-shadow: -12px 0 35px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        gap: 18px;
        height: 100vh;
        justify-content: center;
        padding: 80px 32px;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        transition: transform 0.45s ease;
        width: min(78vw, 340px);
        z-index: 10;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .burger {
        display: grid;
        position: relative;
        z-index: 11;
    }

    .hero {
        min-height: 590px;
    }

    .section {
        padding: 76px 0;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        justify-content: flex-start;
        padding-left: 48px;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-card {
        width: 100%;
    }

    .gallery-grid {
        grid-auto-rows: 180px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-container {
        width: min(100% - 28px, 1200px);
    }

    .gate-options {
        grid-template-columns: 1fr;
    }

    .gate-img {
        height: 180px;
    }

    .gate-card {
        box-shadow: 0 16px 42px rgba(38, 50, 56, 0.16);
        padding: 22px;
    }

    .gate-alert {
        padding: 22px 26px;
    }

    .alert-gif {
        height: 108px;
        width: 108px;
    }

    .member-grid {
        gap: 24px;
    }

    .member-card {
        width: min(100%, 310px);
    }

    .gallery-grid {
        border-radius: 16px;
        gap: 10px;
        grid-auto-rows: 150px;
        padding: 8px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .sticky-notes-container.collapsed {
        max-height: 430px;
    }

    .modal-nav-btn {
        height: 44px;
        width: 44px;
    }

    .modal-nav-btn.prev {
        left: 10px;
    }

    .modal-nav-btn.next {
        right: 10px;
    }

    .close-modal {
        right: 18px;
        top: 12px;
    }

    .modal-card {
        border-radius: 22px;
        padding: 30px 22px;
    }

    .music-player-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
