/* Add the following styles to your CSS file */

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-modal.active {
    display: flex; /* Show when active */
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transform-style: preserve-3d; /* Necessary for 3D transforms */
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    user-select: none; /* Prevent text selection */
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

/* css/gallery-a.css */

.artwork-grid-a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.artwork-grid-a .artwork-card {
    background-color: transparent;
    border-radius: 16px;
    overflow: visible;
    width: 100%;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.artwork-grid-a .artwork-card:hover {
    transform: translateY(-10px);
}

.artwork-grid-a .artwork-image-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: visible;
    transform-style: preserve-3d;
    background: transparent;
}

.artwork-grid-a .artwork-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.artwork-grid-a .artwork-card:hover img {
    transform: scale(1.08) translateZ(40px) rotateY(-5deg) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
