/* 6-Thumbnail Grid */
/* 6-Thumbnail Grid / Dialog */

dialog {
    /* REMOVED display: none to allow showModal() to work */
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    border: none;
    margin: auto;
    padding: 1.5rem;
    transition: all 0.5s ease-in-out allow-discrete;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* When the dialog is opened by JS */
dialog[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    opacity: 1;
    transform: scale(1) translateY(0);
}

dialog::backdrop {
    background-color: rgba(53, 230, 227, 0.7); /* Your specific cyan-ish color */
    transition: all 0.4s ease-out;
}

/* Styling for the content inside */
.modal-img {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.modal-caption {
    font-family: 'Jersey 25', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Button Styling from your original code */
dialog button {
    background: none;
    border: 2px solid rgb(0, 2, 11);
    color: rgb(37, 94, 227);
    font-family: Verdana, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 2rem;
    transition: all 0.5s ease;
}

dialog button:hover {
    background-color: rgb(198, 18, 18);
    color: white;
}