/* assets/css/art-gallery.css */
:root {
    --ags-primary: #2c3e66;
    --ags-text: #333;
    --ags-text-light: #6c757d;
    --ags-border: #e0e0e0;
    --ags-bg: #fefefe;
    --ags-card-shadow: 0 8px 20px rgba(0,0,0,0.05);
    --ags-card-hover: 0 20px 30px rgba(0,0,0,0.1);
}

/* Container */
.ags-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
.ags-section,
.ags-section-showcase {
    padding: 5rem 0;
    background: var(--ags-bg);
}

/* Typography */
.ags-text-center { text-align: center; }
.ags-mb-5 { margin-bottom: 3rem; }
.ags-mb-4 { margin-bottom: 2rem; }
.ags-mt-5 { margin-top: 3rem; }

.ags-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ags-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ags-title {
    font-size: 2.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ags-title em {
    font-style: italic;
    font-weight: 400;
}

.ags-description {
    color: var(--ags-text-light);
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.03rem;
}

.ags-divider {
    width: 60px;
    height: 3px;
    background: var(--ags-primary);
    margin: 1rem auto;
}

/* Search */
.ags-search-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.ags-search-input {
    padding: 12px 20px;
    width: 100%;
    max-width: 400px;
    border: 1.5px solid var(--ags-border);
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}

.ags-search-input:focus {
    border-color: var(--ags-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 102, 0.1);
}

/* Filter Tabs */
.ags-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ags-filter-btn {
    background: transparent;
    border: 1px solid var(--ags-border);
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 40px;
    color: var(--ags-text);
    font-weight: 500;
}

.ags-filter-btn.active,
.ags-filter-btn:hover {
    background: var(--ags-primary);
    color: white;
    border-color: var(--ags-primary);
}

/* Grid System - Bootstrap-like */
.ags-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.ags-col-12 {
    width: 100%;
    padding: 0 0.75rem;
}

.ags-col-6 {
    width: 50%;
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .ags-col-md-4 {
        width: 33.333%;
        padding: 0 0.75rem;
    }
}

/* Work Card - Main Design Pattern */
.ags-work-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: var(--ags-card-shadow);
}

.ags-work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ags-card-hover);
}

.ags-work-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.ags-work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ags-work-card:hover .ags-work-card-img img {
    transform: scale(1.05);
}

.ags-work-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ags-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.ags-work-card-body {
    padding: 1.25rem;
}

.ags-work-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ags-text-light);
    margin-bottom: 0.5rem;
}

.ags-work-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.ags-work-card-desc {
    font-size: 0.85rem;
    color: var(--ags-text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ags-work-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ags-border);
    font-size: 0.8rem;
}

.ags-work-card-meta span {
    color: var(--ags-text-light);
}

.ags-work-card-meta strong {
    color: var(--ags-primary);
    font-size: 1rem;
}

/* Masonry Showcase */
.ags-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ags-masonry {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ags-masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.ags-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ags-masonry-item:hover img {
    transform: scale(1.08);
}

.ags-masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ags-masonry-item:hover .ags-masonry-caption {
    transform: translateY(0);
}

.ags-caption-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.ags-caption-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Buttons */
.ags-view-all {
    background: transparent;
    color: var(--ags-primary);
    border: 1.5px solid var(--ags-primary);
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    transition: all 0.25s;
    cursor: pointer;
}

.ags-view-all:hover {
    background: var(--ags-primary);
    color: #fff;
}

.ags-loading {
    padding: 3rem;
    color: var(--ags-text-light);
}

.ags-arrow {
    display: inline-block;
    margin-left: 4px;
}

/* No Results */
.ags-no-results {
    text-align: center;
    padding: 3rem;
    text-align: center;
    color: var(--ags-text-light);
}

/* assets/css/art-gallery.css */
/* Reset and Base Styles */
.ags-section,
.ags-section-showcase {
    padding: 5rem 0;
    background: #fefefe;
    width: 100%;
    clear: both;
}

.ags-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
.ags-text-center {
    text-align: center;
}

.ags-mb-5 {
    margin-bottom: 3rem;
}

.ags-mb-4 {
    margin-bottom: 2rem;
}

.ags-mt-5 {
    margin-top: 3rem;
}

.ags-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2c3e66;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ags-title {
    font-size: 2.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ags-title em {
    font-style: italic;
    font-weight: 400;
}

.ags-description {
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.03rem;
}

.ags-divider {
    width: 60px;
    height: 3px;
    background: #2c3e66;
    margin: 1rem auto;
}

/* Search Input */
.ags-search-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.ags-search-input {
    padding: 12px 20px;
    width: 100%;
    max-width: 400px;
    border: 1.5px solid #e0e0e0;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.ags-search-input:focus {
    border-color: #2c3e66;
    box-shadow: 0 0 0 3px rgba(44, 62, 102, 0.1);
}

/* Filter Tabs */
.ags-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ags-filter-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 40px;
    color: #333;
    font-weight: 500;
}

.ags-filter-btn.active,
.ags-filter-btn:hover {
    background: #2c3e66;
    color: white;
    border-color: #2c3e66;
}

/* Grid System */
.ags-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
    width: calc(100% + 1.5rem);
}

.ags-col-12 {
    width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.ags-col-6 {
    width: 50%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ags-col-md-4 {
        width: 33.333333%;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }
}

/* Work Card */
.ags-work-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.ags-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.ags-work-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.ags-work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ags-work-card:hover .ags-work-card-img img {
    transform: scale(1.05);
}

.ags-work-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.ags-work-card-body {
    padding: 1.25rem;
}

.ags-work-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.ags-work-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.ags-work-card-desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ags-work-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
}

.ags-work-card-meta span {
    color: #6c757d;
}

.ags-work-card-meta strong {
    color: #2c3e66;
    font-size: 1rem;
}

.ags-old-price-wrapper {
    margin-top: 0.5rem;
    text-align: right;
}

.ags-price-old {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: #6c757d;
}

/* Masonry Showcase */
.ags-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ags-masonry {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ags-masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.ags-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ags-masonry-item:hover img {
    transform: scale(1.08);
}

.ags-masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ags-masonry-item:hover .ags-masonry-caption {
    transform: translateY(0);
}

.ags-caption-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.ags-caption-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Button */
.ags-view-all {
    background: transparent;
    color: #2c3e66;
    border: 1.5px solid #2c3e66;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    transition: all 0.25s;
    cursor: pointer;
}

.ags-view-all:hover {
    background: #2c3e66;
    color: #fff;
}

.ags-loading {
    padding: 3rem;
    color: #6c757d;
    text-align: center;
}

.ags-arrow {
    display: inline-block;
    margin-left: 4px;
}

.ags-no-results {
    padding: 3rem;
    text-align: center;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 767px) {
    .ags-section,
    .ags-section-showcase {
        padding: 3rem 0;
    }
    
    .ags-title {
        font-size: 2rem;
    }
    
    .ags-work-card-title {
        font-size: 1rem;
    }
    
    .ags-work-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}