body {
    font-family: oswald;
    background-color: var(--beige);
}

.expression {
    text-align: center;
    line-height: 2em;
    margin-top: 22px;
    padding: 10px;
    margin-bottom: 60px;
}

h2 {
    font-family: 'Gallery', serif;
    color: rgb(9, 9, 9);
}

p {
    line-height: 1.5em;
    font-family: oswald;
    color: #1d1c1c;
}

.gracious {
    box-shadow: 5px 5px 10px rgba(30, 27, 60, 0.3);
    border-radius: 13px;
    margin: 20px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.gracious img {
    max-width: 100%;
    height: auto;
}

.grac {
    flex: 0 0 45%;
}

.grac p {
    font-family: oswald;
    text-align: justify;
    max-width: 90%;
}

.grac img {
    box-shadow: 5px 5px 10px rgba(30, 27, 60, 0.3);
    height: 200px;
    width: 200px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grac img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pic {
    flex: 0 0 50%;
    position: relative;
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.pic img {
    box-shadow: 5px 5px 10px rgba(128, 94, 114, 0.3);
    border-radius: 10px;
    width: 500px;

    height: 300px;
    /*object-fit: cover;*/
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pic img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(200, 179, 179, 0.2);
}

#logo img {
    cursor: default !important;
}

#logo img:hover {
    transform: none !important;
    box-shadow: none !important;
}

.image {
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
    height: 0;
    backdrop-filter: blur(8px);
    transition: .5s ease;
}

.pic:hover .overlay {
    bottom: 0;
    height: 100%;
}

.text {
    color: rgb(250, 247, 247);
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 60%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

* {
    box-sizing: border-box;
}

.bg-image {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-text {
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: bold;
    border: 3px solid #f1f1f1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    padding: 20px;
    text-align: center;
}

/* ===== RESPONSIVE: testimonial cards ===== */
@media (max-width: 900px) {
    .gracious {
        flex-direction: column;
        align-items: center;
        margin: 16px;
    }

    .grac,
    .pic {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
    }

    .grac p {
        max-width: 100%;
        text-align: center;
    }

    .grac img {
        margin: 0 auto 3px;
    }

    .pic img {
        height: auto;
        max-height: 320px;
    }

    .text {
        left: 50%;
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* Touch devices can't trigger :hover — show overlay on tap via .show-overlay class */
.pic.show-overlay .overlay {
    bottom: 0;
    height: 100%;
}