/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */

/* HERO BANNER */
.page-hero {
    height: 40vh;
    background-color: #000000;
    background-image: linear-gradient(
        135deg,
        #000000 0%,
        #1A1A1A 50%,
        #536878 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero-content p {
    color: #CCCCCC;
    font-size: 1.1rem;
}

/* ==========================================
   FILTER BUTTONS
   ========================================== */
.filter-section {
    background-color: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #DDDDDD;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.8rem;
    border: 2px solid #536878;
    border-radius: 25px;
    background-color: transparent;
    color: #536878;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #536878;
    color: #ffffff;
}

/* ==========================================
   GALLERY GRID
   ========================================== */
.gallery-section {
    background-color: #F2F2F2;
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.gallery-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #DDDDDD;
    max-width: 100%;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px 
        rgba(83,104,120,0.2);
}

.gallery-card.hidden {
    display: none;
}

/* Image container */
.gallery-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background-color: #F2F2F2;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

/* Overlay on hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Quick view button */
.btn-quickview {
    background-color: #536878;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Raleway', sans-serif;
}

.btn-quickview:hover {
    background-color: #ffffff;
    color: #536878;
    transform: scale(1.05);
}

/* Type badge */
.artwork-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #536878;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.artwork-type.print {
    background-color: #000000;
    color: #CCCCCC;
}

/* Card info */
.gallery-info {
    padding: 1.2rem;
}

.gallery-info h3 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 0.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.gallery-info .medium {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #536878;
}

.btn-cart {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Raleway', sans-serif;
}

.btn-cart:hover {
    background-color: #536878;
    color: #ffffff;
}

/* ==========================================
   INQUIRY BUTTON
   ========================================== */
.inquiry-text {
    font-size: 0.8rem;
    color: #888888;
    font-style: italic;
}

.btn-inquiry {
    background-color: #536878;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Raleway', sans-serif;
}

.btn-inquiry:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================
   QUICK VIEW MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #000000;
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #536878;
    color: #ffffff;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    height: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.modal-type {
    color: #536878;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.modal-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #000000;
    font-weight: 700;
}

.modal-medium {
    color: #888888;
    font-size: 0.95rem;
}

.modal-description {
    color: #444444;
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #DDDDDD;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #536878;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }
}
