body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('./anh_am_thuc/background.jpeg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.content-pad {
    background: rgba(255,255,255,0.92);
    max-width: 900px;
    margin: 32px auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 32px 16px;
}

@media (max-width: 600px) {
    .content-pad {
        margin: 8px;
        padding: 12px 4px;
        border-radius: 8px;
    }
}

h1 {
    text-align: center;
    margin: 24px 0;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 16px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 220px;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

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

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.desc {
    padding: 12px;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 24px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #ffb300;
    text-decoration: none;
}

#modalCaption {
    margin: 16px auto 0 auto;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    max-width: 90vw;
    padding-bottom: 40px;
}

@media (max-width: 600px) {
    .gallery-container {
        gap: 8px;
        padding: 8px;
    }
    .gallery-item {
        width: 100%;
        max-width: 320px;
    }
    .modal-content {
        max-width: 98vw;
        max-height: 50vh;
    }
    .close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }
    #modalCaption {
        font-size: 1rem;
        padding-bottom: 24px;
    }
}
