:root {
    --bg-color: #F5F5F7;
    --text-color: #4A4A4A;
    --text-white: #E2E2E5;
    --primary-color: #ED1C24;
    --about-us-color: #1A73E8;
    --areas-of-work-color: #4CAF50;
    --current-events-color: #FFA726;
    --new-case-law-color: #E53935;
    --new-case-law-bg: #e8e8ea;
    --primary-dark: #971115;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.1);
}

@font-face {
  font-family: 'Orbitron Regular';
  src: url('/fonts/Orbitron-Regular.ttf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* Gallery Section */
.gallery-section {
    background-image: url('assets/bg-red.png');
    background-size: cover;
    background-position: 50% 40%;
    background-repeat: no-repeat;
    padding: 4rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.5);
    z-index: 1;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.gallery-section h2 {
    font-family: 'Orbitron Regular', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Gallery Showcase Styles */
.gallery-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.main-image-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.main-image {
    width: 100%;
    height: 675px;
    object-fit: contain;
    transition: opacity 0.5s ease;
    display: block;
}

/* Tablet */
@media (max-width: 768px) {
  .main-image {
    height: 515px;
  }
}

/* Mobile */
@media (max-width: 480px) {
    .gallery-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0.5rem;
        position: relative;
        z-index: 2;
    }
    .main-image {
        height: 270px;
    }
}


.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Orbitron Regular', sans-serif;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 3;
}

@media (max-width: 768px) {
    .image-counter {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(237, 28, 36, 0.3);
}

.thumbnail-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.thumbnail-item:hover:not(.active) {
    border-color: rgba(237, 28, 36, 0.5);
}

.thumbnail-item img {
    width: 120px;
    height: 80px;
    object-fit: fill;
    transition: all 0.3s ease;
    display: block;
}

.thumbnail-item:hover img {
    brightness: 1.1;
}

/* Progress indicator */
.thumbnail-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.1s linear;
    width: 0%;
    z-index: 2;
}

.thumbnail-item.active::after {
    animation: progressBar 8s linear;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

/* Gallery Navigation Arrows */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
}

.gallery-nav-arrow:hover {
    background: rgba(237, 28, 36, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.3);
}

.gallery-nav-arrow i {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.gallery-nav-arrow:hover i {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-nav-left {
    left: 10px;
}

.gallery-nav-right {
    right: 10px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .gallery-nav-arrow {
        width: 32px;
        height: 32px;
    }
    
    .gallery-nav-arrow i {
        font-size: 16px;
    }
    
    .gallery-nav-left {
        left: 5px;
    }
    
    .gallery-nav-right {
        right: 5px;
    }
}