.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.gallery-item {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f0e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #bca98f;
    display: flex;
    padding: 9.25px;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.04);
}

.fav-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    padding: 6px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.fav-btn .fa-heart {
    color: #bca98f;
    font-size: 1.1em;
    pointer-events: none;
}

.fav-btn.favorited .fa-heart {
    color: #e57373;
    font-weight: bold;
}

.fav-btn:hover {
    background: #fffbe9;
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 500;
    left: 0; top: 0; width: 100vw; height: 100vh;
    align-items: center;
    justify-content: center;
}

.gallery-modal.show {
    display: flex;
}

.gallery-modal-overlay {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(34, 34, 34, 0.7);
    z-index: 101;
}

.gallery-modal-content {
    position: relative;
    z-index: 102;
    background: #fffbe9;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 24px 24px 32px 24px;
    display: flex;
    margin-bottom: 14px;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 80vh;
}

.gallery-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid #bca98f;
    background: #fffbe9;
}

.gallery-modal-caption {
    background: #fffbe9;
    color: #6d4c2b;
    margin-top: 14px;
    font-size: 1.08em;
    text-align: center;
    max-width: 80vw;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 1.5px solid #bca98f;
    display: inline-block;
}

.gallery-modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #322316;           /* Brighter color */
    font-size: 3em;         /* Larger size */
    cursor: pointer;
    font-weight: bold;
    z-index: 103;
    transition: color 0.2s, text-shadow 0.2s;
    user-select: none;
    text-shadow: 0 4px 10px #fffbe9, 0 0 4px #bca98f;
}
.gallery-modal-close:hover {
    color: #b22222;
    text-shadow: 0 2px 12px #fffbe9, 0 0 8px #bca98f;
}
.gallery-modal-close:hover {
    color: #e57373;
}

