/* Layout ?????? ???????????? ???????? */
body {
    background-color: #fceee7;
    color: #3e3e3e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Outfit, "Segoe UI", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ??????????????? ?????????? (soft terracotta) */
:root {
    --main-color: #c97f63;
    --accent-light: #f4d8cd;
    --accent-pink: #eec9c5;
    --background-pastel: #fceee7;
    --text-dark: #3e3e3e;
}

/* ????????????? thumbnail */
.thumb {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.thumb_c {
    cursor: pointer;
}

.thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Gallery modal ? download / share ???????? ?????? ?????? ???????????? */
#photoModal .gallery-photo-actions {
    z-index: 5;
}

/* ????????????? */
.btn-primary {
    background-color: var(--main-color);
    border: none;
}

.btn-primary:hover {
    background-color: #b56e54;
}

.btn-outline-primary {
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn-outline-primary:hover {
    background-color: var(--main-color);
    color: white;
}

/* ????????????? ???????????? */
.btn-outline-danger {
    color: #d65a5a;
    border-color: #d65a5a;
}

.btn-outline-danger:hover {
    background-color: #d65a5a;
    color: white;
}

.btn-outline-success {
    color: #609966;
    border-color: #609966;
}

.btn-outline-success:hover {
    background-color: #609966;
    color: white;
}

/* ???????????? */
.border-top,
.border-bottom {
    border-color: var(--accent-light) !important;
}

/* ??????????? */
h1,
h2,
h3,
.display-5,
.display-4 {
    font-family: 'Playfair Display', serif;
    color: var(--main-color);
}

a {
    color: var(--main-color);
}

a:hover {
    color: #a25743;
}

/* ??????? ????????? */
.footer {
    margin-top: auto;
    background-color: white;
    border-top: 1px solid var(--accent-light);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

form .form-control {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

form label {
    font-weight: 500;
    color: #555;
}

form button {
    font-size: 0.95rem;
    padding: 0.5rem;
}

form input::placeholder {
    color: #bbb;
    font-style: italic;
}

form input::placeholder {
    color: #bbb;
    font-style: italic;
}

.card-text {
    line-height: 1.5;
}

.card {
    transition: box-shadow 0.2s;
    border-radius: 12px;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f9f9f9;
    font-size: 0.9rem;
}

.card img {
    border-radius: 6px;
}

.sticky-top {
    z-index: 1030;
    /* ?????? ???? Bootstrap */
}

.icon-fixed {
    font-size: 1.6rem;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
}

.icon-btn i {
    font-size: 1.6rem;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    vertical-align: middle;
}

.icon-btn {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
}

.text-brown {
    color: #a0522d !important;
    border-color: #a0522d !important;
}

.carousel-caption .like-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    bottom: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-caption .like-box button {
    font-size: 1.1rem;
    padding: 0.25rem 0.6rem;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
}

.navbar-nav .nav-link.active {
    background-color: #f0f0f0;
    font-weight: 500;
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.navbar-nav .nav-link:hover {
    background-color: #f0f0f0;
    border-radius: 0.375rem;
}

.responsive-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.2;
}

.responsive-title span {
    display: inline-block;
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    /* <-- ??????? ?????????? ???? responsive ???????????? */
    white-space: nowrap;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.25rem;
    /* ?????????? ???????? ?????????????? ???? ????????????????? ?????? ?????????????? */
}

.navbar-toggler-icon {
    width: 1.2rem;
    height: 1.2rem;
}

#mainNavbar.show ul {
    border-top: 1px solid #dee2e6;
    /* Bootstrap color ?????? border */
    padding-top: 0.5rem;
    /* ???????? ????????????????? ?????? ????????????????????? ???????????? */
}

.big-checkbox {
    width: 1.5em;
    height: 1.5em;
}

.text-gallery-title {
    color: #c1673f;
}

.text-gold {
    color: #c1673f;
}

/* ?????????? styling ?????? ??????????? ???????????? */
form .form-control-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.25;
    border-radius: 0.3rem;
    height: auto;
    /* override bootstrap height */
}

/* ????????? button ?????? ?????????????????? ???? ???? input */
form .btn-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    line-height: 1.3;
    border-radius: 0.3rem;
}

/* ??????? ?????????? inline */
.form-inline-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
}

/* Placeholder ?????? ???????? ?????? ???????????? */
form input::placeholder,
form textarea::placeholder {
    color: #aaa;
    font-style: italic;
    font-size: 0.85rem;
}

.bg-gallery-filter {
    background-color: #ffffff;
    /* ?????? ???????????? ?????? #f8f9fa */
}

.bg-wishes-filter {
    background-color: #ffffff;
    /* ?????? ???????????? ?????? #f8f9fa */
}

.wish-sender-picker {
    position: relative;
    width: 240px;
    max-width: 100%;
}

.wish-sender-picker__input {
    width: 100%;
}

.wish-sender-picker__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wish-sender-picker__list li {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.wish-sender-picker__list li:hover,
.wish-sender-picker__list li.is-active {
    background: rgba(13, 110, 253, 0.08);
}

.wish-sender-picker.is-open .wish-sender-picker__input {
    border-color: rgba(13, 110, 253, 0.45);
}

.card.wish-card {
    background-color: #efefef;
    /* ????????????????????????? ?????????????? ???????? */
    border: 1px solid #e3e3e3;
    border-radius: 12px;
}

.wish-card__body {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
}

.wish-card__media {
    flex: 0 0 auto;
}

.wish-card__media--image {
    cursor: pointer;
    line-height: 0;
}

.wish-card__media--image img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.wish-card__media--video video {
    display: block;
    width: min(220px, 42vw);
    max-height: 160px;
    border-radius: 10px;
    background: #000;
}

.wish-card__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wish-card__message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.wish-card__meta {
    margin-top: auto;
    text-align: end;
}

@media (max-width: 575.98px) {
    .wish-card__body {
        gap: 0.7rem;
        padding: 0.8rem;
    }

    .wish-card__media--image img {
        width: 72px;
        height: 72px;
    }
}

/* @media (prefers-color-scheme: dark) {
    .card.wish-card {
        background-color: #2c2f33;
        color: #ddd;
        border-color: #444;
    }
} */
/* ?? Event chrome: header/footer aligned with landing shell ?? */
body.event-chrome {
    --ec-ink: #1a1f24;
    --ec-ink-soft: #3a434c;
    --ec-muted: #6b757f;
    --ec-cream: #faf8f5;
    --ec-paper: #e8e4de;
    --ec-line: rgba(26, 31, 36, 0.1);
    --ec-accent: #8b6b4a;
    background-color: var(--ec-paper) !important;
    color: var(--ec-ink);
    font-family: Outfit, system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

body.event-chrome .event-chrome-nav {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ec-line);
    box-shadow: none;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

body.event-chrome .event-chrome-nav__inner {
    max-width: 1080px;
}

body.event-chrome .responsive-title {
    color: var(--ec-ink);
    text-shadow: none;
    letter-spacing: -0.01em;
}

body.event-chrome .responsive-title .bi-camera {
    color: var(--ec-accent) !important;
}

body.event-chrome .navbar-nav .nav-link {
    color: var(--ec-ink-soft);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

body.event-chrome .navbar-nav .nav-link:hover {
    background-color: rgba(26, 31, 36, 0.05);
    color: var(--ec-ink);
}

body.event-chrome .navbar-nav .nav-link.active {
    background-color: var(--ec-ink);
    color: #fff;
    font-weight: 600;
}

body.event-chrome .navbar-nav .nav-link.active i {
    color: #fff;
}

body.event-chrome .navbar-toggler {
    border-color: var(--ec-line);
    padding: 0.3rem 0.45rem;
}

body.event-chrome .event-chrome-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
}

body.event-chrome .dropdown-menu {
    border: 1px solid var(--ec-line);
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(26, 31, 36, 0.1);
    background: var(--ec-cream);
}

body.event-chrome .dropdown-item.active,
body.event-chrome .dropdown-item:active {
    background: var(--ec-ink);
}

body.event-chrome #mainNavbar.show ul {
    border-top-color: var(--ec-line);
    padding-top: 0.5rem;
    margin-top: 0.35rem;
}

body.event-chrome .event-chrome-footer {
    background: transparent;
    border-top: 1px solid var(--ec-line);
    color: var(--ec-muted);
}

body.event-chrome .event-chrome-footer__copy {
    color: var(--ec-muted) !important;
}

body.event-chrome .event-chrome-footer__copy .bi-heart-fill {
    color: var(--ec-accent);
}

body.event-chrome .event-chrome-footer__brand {
    color: var(--ec-muted);
    opacity: 0.85 !important;
}

body.event-chrome .event-chrome-footer .container {
    max-width: 1080px;
}

body.event-chrome .event-chrome-footer__credit,
.event-chrome-footer__credit {
    margin-top: 0.55rem;
    text-align: center;
}

.site-credit {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    color: #8a8580;
}

.site-credit__brand {
    color: #6ea8d6;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 168, 214, 0.45);
    line-height: 1.2;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-credit__brand:hover,
.site-credit__brand:focus-visible {
    color: #4f91c4;
    border-bottom-color: rgba(79, 145, 196, 0.8);
}

body.event-chrome .site-credit {
    color: var(--ec-muted);
}

body.event-chrome .site-credit__brand {
    color: #7eb4d8;
    border-bottom-color: rgba(126, 180, 216, 0.4);
}
