/* Photo Gallery - Premium Styles */

.gallery-title-main {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.title-decorator-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #383db3, #6b6ef5);
    border-radius: 2px;
}

.filter-wrapper {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #eef2f3;
}

.items-per-page-select {
    border: none;
    background-color: transparent;
    font-weight: 600;
    color: #383db3;
    cursor: pointer;
    padding-right: 24px;
}

.items-per-page-select:focus {
    box-shadow: none;
}

/* Premium Card Styles */
.premium-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f4;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(56, 61, 179, 0.12);
    border-color: rgba(56, 61, 179, 0.2);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.card-img-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover .card-img-custom {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.premium-card:hover .card-overlay {
    opacity: 1;
}

.btn-premium-action {
    background: #ffffff;
    color: #383db3;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-premium-action:hover {
    background: #383db3;
    color: #ffffff;
    transform: scale(1.05);
}

.premium-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge-album {
    background: rgba(56, 61, 179, 0.1);
    color: #383db3;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 12px;
}

.premium-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.4;
}

.premium-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.premium-card-title a:hover {
    color: #383db3;
}

.premium-card-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.premium-photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0;
}

/* Pagination Premium */
.pagination-premium .page-link {
    border: 1px solid #eef2f3;
    color: #1a1a2e;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination-premium .page-item.active .page-link {
    background-color: #383db3;
    border-color: #383db3;
    color: #ffffff;
}

.pagination-premium .page-link:hover:not(.disabled) {
    background-color: #f1f3ff;
    color: #383db3;
    border-color: rgba(56, 61, 179, 0.2);
}

.pagination-premium .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
}

.btn-outline-premium {
    border: 1.5px solid #383db3;
    color: #383db3;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-premium:hover {
    background-color: #383db3;
    color: #ffffff;
}

/* Lightbox Modal Custom Styles */
.modal-backdrop.show {
    opacity: 0.9 !important;
    background-color: #0b0b14;
}

.btn-close-custom {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    line-height: 0.5;
    transition: color 0.2s ease;
    outline: none;
}

.btn-close-custom:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.lightbox-image-container {
    padding: 20px;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.lightbox-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(5px);
}

.lightbox-nav-btn:hover {
    background: #383db3;
    border-color: #383db3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(56, 61, 179, 0.4);
}

.prev-btn-custom {
    left: 30px;
}

.next-btn-custom {
    right: 30px;
}

/* Fix Bootstrap Modal Backdrop layering issue */
.modal {
    z-index: 1060 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}
