/* =========================================
   GLOBAL
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #302d29;
    background: #ffffff;
}

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


/* =========================================
   HEADER / NAVBAR
========================================= */

.navbar {
    min-height: 76px;
}

.navbar-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    color: #302d29 !important;
}

.navbar .nav-link {
    color: #625d57;
    font-size: 0.95rem;
    padding-left: 14px !important;
    padding-right: 14px !important;

    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #9a7454;
}

.navbar .nav-link.active {
    color: #9a7454 !important;
    font-weight: 600;
}

.navbar .btn-outline-dark {
    border-radius: 50px;
    padding: 8px 20px;
}


/* =========================================
   SHARED SECTIONS
========================================= */

.section-container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section-label {
    margin-bottom: 12px;

    color: #9a7454;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    color: #302d29;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 500;

    line-height: 1.15;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 680px;

    display: flex;
    align-items: center;

    position: relative;

    background:
        linear-gradient(
            rgba(22, 19, 16, 0.35),
            rgba(22, 19, 16, 0.55)
        ),
        url("../images/family-hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    width: min(1180px, 90%);
    margin: 0 auto;

    color: #ffffff;
}

.hero-small {
    display: block;

    margin-bottom: 20px;

    font-size: 0.83rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero h1 {
    max-width: 750px;

    margin-bottom: 25px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(3.5rem, 8vw, 6.4rem);
    font-weight: 400;

    line-height: 0.98;
}

.hero p {
    max-width: 600px;

    margin-bottom: 35px;

    font-size: 1.1rem;

    color: rgba(255, 255, 255, 0.9);
}


/* =========================================
   BUTTONS
========================================= */

.primary-button,
.secondary-button {
    display: inline-block;

    padding: 14px 26px;

    border-radius: 50px;

    text-decoration: none;

    transition: 0.25s ease;
}

.primary-button {
    background: #ffffff;
    color: #302d29;
}

.primary-button:hover {
    background: #eee7df;
    color: #302d29;

    transform: translateY(-2px);
}

.secondary-button {
    margin-top: 8px;

    background: #37322e;
    color: #ffffff;
}

.secondary-button:hover {
    background: #9a7454;
    color: #ffffff;
}


/* =========================================
   WELCOME
========================================= */

.welcome-section {
    padding: 110px 0 90px;

    text-align: center;
}

.welcome-section .section-container {
    max-width: 800px;
}

.section-intro {
    max-width: 700px;

    margin: 25px auto 0;

    color: #716b65;

    font-size: 1.05rem;

    line-height: 1.8;
}


/* =========================================
   MEMORIES
========================================= */

.memories-section {
    padding: 100px 0;

    background: #f7f5f1;
}

.section-heading-row {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 45px;
}

.text-link {
    color: #8b684c;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;
}

.text-link:hover {
    color: #5f4633;
}

.memory-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}

.memory-card {
    overflow: hidden;

    background: #ffffff;

    border-radius: 9px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    transition: 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.09);
}

.memory-image {
    height: 280px;

    position: relative;

    overflow: hidden;
}

.memory-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.memory-card:hover .memory-image img {
    transform: scale(1.04);
}

.image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8e2da;

    color: #82766d;
}

.memory-category {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 7px 13px;

    background: rgba(255, 255, 255, 0.93);

    border-radius: 50px;

    color: #504941;

    font-size: 0.7rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.memory-content {
    padding: 25px;
}

.memory-date {
    margin-bottom: 8px;

    color: #9a7454;

    font-size: 0.78rem;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.memory-content h3 {
    margin-bottom: 12px;

    color: #302d29;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.55rem;
    font-weight: 500;
}

.memory-content p {
    margin-bottom: 0;

    color: #716b65;

    font-size: 0.93rem;

    line-height: 1.7;
}

.empty-memories {
    grid-column: 1 / -1;

    padding: 70px 30px;

    text-align: center;

    background: #ffffff;

    border-radius: 9px;
}

.empty-memories h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.7rem;
}


/* =========================================
   ABOUT PREVIEW
========================================= */

.about-preview {
    padding: 120px 0;
}

.about-grid {
    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    align-items: center;

    gap: 90px;
}

.about-photo {
    height: 560px;

    overflow: hidden;

    border-radius: 8px;
}

.about-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 18px;

    color: #6e6964;

    line-height: 1.8;
}


/* =========================================
   FAMILY QUOTE
========================================= */

.family-quote {
    padding: 100px 0;

    background: #37322e;

    text-align: center;
}

.family-quote p {
    max-width: 850px;

    margin: 0 auto;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(1.8rem, 4vw, 3rem);
    font-style: italic;

    line-height: 1.4;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 60px 0 20px;

    background: #f3efe9;
}

.footer-content {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;

    padding-bottom: 40px;
}

.footer-brand a {
    color: #312d29;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.5rem;
    font-weight: 600;

    text-decoration: none;
}

.footer-brand p {
    max-width: 350px;

    margin-top: 10px;
    margin-bottom: 0;

    color: #746f69;
}

.footer-links {
    display: flex;

    gap: 25px;

    flex-wrap: wrap;
}

.footer-links a {
    color: #5d5852;

    text-decoration: none;

    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #9a7454;
}

.footer-bottom {
    padding-top: 20px;

    border-top: 1px solid #dcd5cd;
}

.footer-bottom p {
    margin: 0;

    color: #837c75;

    font-size: 0.85rem;

    text-align: center;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

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

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-photo {
        height: 450px;
    }
}


@media (max-width: 700px) {

    .hero {
        min-height: 580px;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .welcome-section,
    .memories-section,
    .about-preview {
        padding: 75px 0;
    }

    .section-heading-row {
        flex-direction: column;

        align-items: flex-start;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;

        gap: 10px;
    }
}
/* =========================================
   DASHBOARD
========================================= */

.dashboard-section {
    min-height: 75vh;
    padding: 70px 0;
    background: #f7f5f1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-label {
    margin-bottom: 8px;

    color: #9a7454;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.dashboard-header h1,
.form-page-header h1 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 2.8rem;
    font-weight: 500;

    margin-bottom: 10px;
}

.dashboard-header p,
.form-page-header p {
    color: #716b65;
    margin-bottom: 0;
}

.dashboard-add-btn {
    border-radius: 50px;

    padding: 11px 22px;
}


/* =========================================
   DASHBOARD CARD
========================================= */

.dashboard-card {
    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.05);

    overflow: hidden;
}

.dashboard-card-header {
    padding: 25px 30px;

    border-bottom: 1px solid #eee9e3;
}

.dashboard-card-header h2 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: 1.6rem;
}


/* =========================================
   DASHBOARD POSTS
========================================= */

.dashboard-post-list {
    display: flex;

    flex-direction: column;
}

.dashboard-post-item {
    display: grid;

    grid-template-columns:
        130px 1fr auto;

    align-items: center;

    gap: 25px;

    padding: 24px 30px;

    border-bottom: 1px solid #eee9e3;
}

.dashboard-post-item:last-child {
    border-bottom: none;
}

.dashboard-post-image {
    width: 130px;
    height: 100px;

    border-radius: 8px;

    overflow: hidden;

    background: #ece7e0;
}

.dashboard-post-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.dashboard-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #867e75;

    font-size: 0.8rem;
}

.dashboard-category {
    display: inline-block;

    margin-bottom: 6px;

    color: #9a7454;

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-post-content h3 {
    margin-bottom: 6px;

    font-family: Georgia, serif;

    font-size: 1.35rem;
}

.dashboard-post-content p {
    margin-bottom: 0;

    color: #716b65;

    font-size: 0.9rem;
}

.dashboard-date {
    margin-bottom: 7px !important;

    color: #9b958e !important;

    font-size: 0.8rem !important;
}

.dashboard-actions {
    display: flex;

    gap: 8px;
}

.dashboard-actions form {
    margin: 0;
}


/* =========================================
   EMPTY DASHBOARD
========================================= */

.dashboard-empty {
    padding: 80px 25px;

    text-align: center;
}

.dashboard-empty h3 {
    font-family: Georgia, serif;

    font-size: 1.7rem;
}

.dashboard-empty p {
    margin: 10px 0 25px;

    color: #716b65;
}


/* =========================================
   ADD / EDIT FORM
========================================= */

.form-page-header {
    max-width: 760px;

    margin: 0 auto 30px;
}

.back-link {
    display: inline-block;

    margin-bottom: 22px;

    color: #8a684d;

    text-decoration: none;
}

.back-link:hover {
    color: #5e4432;
}

.dashboard-form-card {
    max-width: 760px;

    margin: auto;

    padding: 40px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.05);
}

.dashboard-form-card .form-label {
    font-weight: 600;

    color: #413d39;
}

.dashboard-form-card .form-control,
.dashboard-form-card .form-select {
    min-height: 48px;

    border-color: #ddd7d0;

    border-radius: 7px;
}

.dashboard-form-card textarea.form-control {
    min-height: 160px;
}

.dashboard-form-card .form-control:focus,
.dashboard-form-card .form-select:focus {
    border-color: #9a7454;

    box-shadow:
        0 0 0 0.2rem rgba(154, 116, 84, 0.12);
}

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding-top: 10px;
}


/* =========================================
   CURRENT IMAGE
========================================= */

.current-image img {
    max-width: 300px;
    max-height: 220px;

    object-fit: cover;

    border-radius: 8px;
}


/* =========================================
   DASHBOARD MOBILE
========================================= */

@media (max-width: 800px) {

    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .dashboard-post-item {
        grid-template-columns: 100px 1fr;
    }

    .dashboard-post-image {
        width: 100px;
        height: 90px;
    }

    .dashboard-actions {
        grid-column: 1 / -1;

        justify-content: flex-end;
    }
}


@media (max-width: 550px) {

    .dashboard-section {
        padding: 45px 0;
    }

    .dashboard-post-item {
        grid-template-columns: 1fr;
    }

    .dashboard-post-image {
        width: 100%;
        height: 200px;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }

    .dashboard-form-card {
        padding: 25px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}
/* =========================================
   EVENTS ADMIN CONTROLS
========================================= */

.events-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;

    margin-bottom: 50px;
}

.events-header-row .events-header {
    margin-bottom: 0;
}

.add-memory-button {
    flex-shrink: 0;

    padding: 12px 22px;

    border-radius: 50px;
}


.modal-admin-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid #eee8e1;
}

.modal-admin-actions form {
    margin: 0;
}


@media (max-width: 700px) {

    .events-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-admin-actions .btn {
        width: 100%;
    }
}
/* =========================================
   EVENTS & ACTIVITIES PAGE
========================================= */

.events-page {
    min-height: 70vh;
    padding: 80px 0 110px;
    background: #f7f5f1;
}

.events-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 45px;
}

.events-header {
    max-width: 700px;
}

.events-header h1 {
    margin-bottom: 15px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
}

.events-header p {
    margin: 0;
    color: #716b65;
    font-size: 1.05rem;
}

.add-memory-button {
    flex-shrink: 0;
    padding: 11px 22px;
    border-radius: 50px;
}


/* =========================================
   EVENTS GRID
========================================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* =========================================
   EVENT CARD
========================================= */

.event-card {
    overflow: hidden;

    background: #ffffff;

    border-radius: 10px;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.09);
}


/* =========================================
   EVENT IMAGE
========================================= */

.event-card-image {
    position: relative;

    width: 100%;
    height: 260px;

    overflow: hidden;

    background: #e9e4dd;
}

.event-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.04);
}

.event-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #81786f;
}


/* =========================================
   CATEGORY BADGE
========================================= */

.event-category {
    position: absolute;

    top: 16px;
    left: 16px;

    padding: 6px 12px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 50px;

    color: #4f4841;

    font-size: 0.7rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   EVENT CONTENT
========================================= */

.event-card-content {
    padding: 24px;
}

.event-date {
    margin-bottom: 8px;

    color: #9a7454;

    font-size: 0.78rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-content h2 {
    margin-bottom: 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;

    line-height: 1.25;
}

.event-card-content p {
    margin-bottom: 16px;

    color: #716b65;

    font-size: 0.93rem;
    line-height: 1.7;
}

.view-memory {
    color: #8a684d;

    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================
   MODAL
========================================= */

.family-modal {
    overflow: hidden;

    border: none;
    border-radius: 14px;
}

.family-modal-grid {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    min-height: 560px;
}


/* =========================================
   MODAL IMAGE
========================================= */

.family-modal-image {
    min-height: 560px;

    background: #e9e4dd;
}

.family-modal-image img {
    width: 100%;
    height: 100%;
    min-height: 560px;

    object-fit: cover;
}

.modal-no-image {
    width: 100%;
    min-height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #81786f;
}


/* =========================================
   MODAL CONTENT
========================================= */

.family-modal-content {
    padding: 50px 42px;

    overflow-y: auto;
}

.modal-category {
    display: inline-block;

    margin-bottom: 12px;

    color: #9a7454;

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.family-modal-content h2 {
    margin-bottom: 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    font-weight: 500;
}

.modal-date {
    margin-bottom: 30px;

    color: #8d8781;
}

.modal-section {
    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid #eee8e1;
}

.modal-section h3 {
    margin-bottom: 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.modal-section p {
    margin: 0;

    color: #625d58;

    line-height: 1.8;

    white-space: pre-line;
}


/* =========================================
   NOTES
========================================= */

.modal-notes {
    padding: 20px;

    background: #f8f5f0;

    border: none;
    border-radius: 8px;
}


/* =========================================
   MODAL CLOSE BUTTON
========================================= */

.modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    padding: 10px;

    background-color: #ffffff;

    border-radius: 50%;

    opacity: 1;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.12);
}


/* =========================================
   ADMIN ACTIONS
========================================= */

.modal-admin-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid #eee8e1;
}

.modal-admin-actions form {
    margin: 0;
}


/* =========================================
   EMPTY PAGE
========================================= */

.events-empty {
    padding: 70px 30px;

    background: #ffffff;

    border-radius: 10px;

    text-align: center;
}

.events-empty h2 {
    font-family: Georgia, "Times New Roman", serif;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

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

    .family-modal-grid {
        grid-template-columns: 1fr;
    }

    .family-modal-image,
    .family-modal-image img,
    .modal-no-image {
        min-height: 340px;
        max-height: 430px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .events-page {
        padding: 55px 0 80px;
    }

    .events-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .event-card-image {
        height: 230px;
    }

    .family-modal-content {
        padding: 35px 24px;
    }

    .family-modal-content h2 {
        font-size: 1.9rem;
    }

    .modal-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-admin-actions .btn {
        width: 100%;
    }
}
/* =========================================
   ABOUT PAGE
========================================= */

.about-page {
    padding: 90px 0 120px;
    background: #ffffff;
}


/* =========================================
   ABOUT HEADER
========================================= */

.about-page-header {
    max-width: 850px;
    margin-bottom: 80px;
}

.about-page-header h1 {
    max-width: 800px;
    margin-bottom: 25px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;

    line-height: 1.08;
}

.about-page-header p {
    max-width: 680px;

    color: #716b65;

    font-size: 1.08rem;
    line-height: 1.8;
}


/* =========================================
   MAIN ABOUT AREA
========================================= */

.about-main-grid {
    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    align-items: center;

    gap: 85px;

    margin-bottom: 120px;
}

.about-main-image {
    height: 600px;

    overflow: hidden;

    border-radius: 10px;
}

.about-main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.about-main-content h2 {
    margin-bottom: 25px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.about-main-content p {
    margin-bottom: 20px;

    color: #6f6963;

    line-height: 1.85;
}


/* =========================================
   FAMILY VALUES
========================================= */

.family-values {
    padding: 100px 0;

    border-top: 1px solid #eee8e1;
    border-bottom: 1px solid #eee8e1;
}

.family-values-header {
    max-width: 700px;

    margin-bottom: 50px;
}

.values-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.value-card {
    padding: 35px;

    background: #f7f5f1;

    border-radius: 10px;
}

.value-number {
    margin-bottom: 25px;

    color: #9a7454;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 1px;
}

.value-card h3 {
    margin-bottom: 15px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.6rem;
}

.value-card p {
    margin: 0;

    color: #716b65;

    line-height: 1.75;
}


/* =========================================
   ABOUT CLOSING
========================================= */

.about-closing {
    max-width: 760px;

    margin: 110px auto 0;

    text-align: center;
}

.about-closing h2 {
    margin-bottom: 20px;
}

.about-closing p {
    max-width: 620px;

    margin: 0 auto 25px;

    color: #716b65;

    line-height: 1.8;
}


/* =========================================
   RESPONSIVE ABOUT PAGE
========================================= */

@media (max-width: 900px) {

    .about-main-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-main-image {
        height: 450px;
    }

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


@media (max-width: 650px) {

    .about-page {
        padding: 60px 0 85px;
    }

    .about-page-header {
        margin-bottom: 55px;
    }

    .about-main-grid {
        margin-bottom: 80px;
    }

    .about-main-image {
        height: 350px;
    }

    .family-values {
        padding: 70px 0;
    }

    .about-closing {
        margin-top: 80px;
    }
}
/* =========================================
   HOMEPAGE CLICKABLE MEMORIES
========================================= */

.clickable-memory {
    cursor: pointer;
}

.clickable-memory .view-memory {
    display: inline-block;

    margin-top: 10px;

    color: #8a684d;

    font-size: 0.9rem;
    font-weight: 600;
}

.clickable-memory:hover .view-memory {
    color: #5f4633;
}
/* =========================================
   HOMEPAGE GALLERY
========================================= */

.gallery-section {
    padding: 100px 0;
    background: #ffffff;
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.gallery-item {
    position: relative;

    height: 300px;

    overflow: hidden;

    border-radius: 10px;

    cursor: pointer;

    background: #eee9e3;
}


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

    object-fit: cover;

    transition: transform 0.4s ease;
}


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


/* Overlay */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: flex-end;

    padding: 25px;

    color: white;

    background:
        linear-gradient(
            transparent 40%,
            rgba(0, 0, 0, 0.7)
        );

    opacity: 0;

    transition: opacity 0.3s ease;
}


.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


.gallery-overlay h3 {
    margin-bottom: 5px;

    font-family: Georgia, serif;

    font-size: 1.35rem;
}


.gallery-overlay span {
    font-size: 0.85rem;
}


/* =========================================
   GALLERY MODAL
========================================= */

.gallery-modal {
    overflow: hidden;

    border: none;
    border-radius: 12px;

    background: #111;
}


.gallery-modal-image {
    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 500px;

    background: #111;
}


.gallery-modal-image img {
    width: 100%;
    max-height: 75vh;

    object-fit: contain;
}


.gallery-modal-details {
    padding: 25px 30px;

    background: white;
}


.gallery-modal-details h2 {
    margin-bottom: 10px;

    font-family: Georgia, serif;

    font-size: 1.6rem;
}


.gallery-modal-details p {
    margin: 0;

    color: #6d6761;

    line-height: 1.7;
}


.gallery-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 50;

    padding: 10px;

    background-color: white;

    border-radius: 50%;

    opacity: 1;
}


.gallery-admin {
    padding: 0 30px 25px;

    background: white;
}


/* =========================================
   RESPONSIVE GALLERY
========================================= */

@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

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

    .gallery-item {
        height: 260px;
    }

}
/* =========================================
   GALLERY PAGE
========================================= */

.gallery-page {
    min-height: 70vh;
    padding: 90px 0 120px;
    background: #f7f5f1;
}

.gallery-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 50px;
}

.gallery-page-header h1 {
    margin-bottom: 15px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 500;
}

.gallery-page-header p {
    max-width: 600px;

    margin: 0;

    color: #716b65;

    font-size: 1.05rem;
}

@media (max-width: 650px) {

    .gallery-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

}
