/* Main Container */
.galeri-section {
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Header & Filters */
.page-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Filter Card */
.filter-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d1d5db;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.btn-filter,
.btn-reset {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-filter {
    background-color: #111827;
    color: #fff;
    border: none;
}

.btn-filter:hover {
    background-color: #1f2937;
    color: #fff;
    transform: translateY(-1px);
}

.btn-reset {
    background-color: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-reset:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* Gallery Grid Card */
.gallery-card {
    text-decoration: none;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-image-wrapper {
    position: relative;
    padding-top: 65%;
    /* 16:9 Aspect Ratio-ish */
    overflow: hidden;
}

.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

.watermark-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-align: right;
    pointer-events: none;
    font-weight: 500;
}

.card-content {
    padding: 1.25rem;
}

.gallery-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.2s;
}

.gallery-card:hover .gallery-title {
    color: #111827;
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty State */
.empty-gallery {
    text-align: center;
    padding: 4rem 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
}


/* Detail Page Styles */
.gallery-detail-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-image-wrapper {
    position: relative;
    width: 100%;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    background-color: #000;
    /* Dark background for potentially letterboxed images */
}

.detail-content {
    padding: 2.5rem;
}

.detail-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background-color: #fff;
    color: #374151;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-back:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateX(-2px);
}

.btn-download-image {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.btn-download-image:hover {
    transform: scale(1.05);
    background: #fff;
    color: #111827;
}

@media (max-width: 768px) {
    .detail-content {
        padding: 1.5rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-download-image {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}