@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap");

html {
    min-height: 100%;
}

body,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body a,
body button,
body .header-left,
body .small-title {
    font-family: "Syne", sans-serif !important;
}

body:not(.home-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 72px;
}

.site-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px clamp(16px, 4vw, 48px);
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.site-bar a {
    color: inherit;
    text-decoration: none;
}

.site-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-back:hover,
.site-back:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-2px);
}

.site-menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    color: inherit;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.site-menu-toggle span {
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.site-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: clamp(16px, 4vw, 48px);
    display: grid;
    min-width: 220px;
    padding: 8px;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.site-menu[hidden] {
    display: none;
}

.site-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

body:not(.home-page) > .header-left,
body:not(.home-page) > .title-left,
body:not(.home-page) > .header-back,
body:not(.home-page) > .back-button,
body:not(.home-page) > .page-header {
    display: none !important;
}

.link-container .link {
    display: inline-block;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.link-container .link:hover,
.link-container .link:focus-visible {
    transform: scale(1.06);
}

.gallery-item img,
.grid-item img,
.preview-item img {
    transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.3, 1), filter 0.35s ease, box-shadow 0.35s ease;
}

.fullscreen-carousel {
    animation: gallery-overlay-in 0.28s ease both;
}

.carousel-content img.image-changing {
    animation: gallery-image-change 0.32s ease both;
}

.copyright {
    position: static !important;
    margin-top: auto !important;
    align-self: stretch;
    text-align: center !important;
}

.copyright > p {
    align-self: center !important;
    width: 100%;
    margin: 0 0 14px !important;
    font-family: "Syne", sans-serif !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.copyright > p a {
    font-family: inherit !important;
    font-size: inherit !important;
}

.home-page .copyright {
    position: absolute !important;
    bottom: 0;
    margin-top: 0 !important;
}

.home-page > .site-bar {
    background: rgba(0, 0, 0, 0.28);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

@keyframes gallery-overlay-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gallery-image-change {
    from {
        opacity: 0.35;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .site-bar {
        min-height: 58px;
    }
}
