.gallery .gallery-item {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin: 10px;
}

.gallery .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 25%, 
        rgba(22, 160, 133, 0.1) 50%, 
        rgba(220, 38, 38, 0.1) 75%, 
        rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery .gallery-item:hover::before {
    opacity: 1;
}

.gallery .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery .gallery-item:nth-child(8n+1) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF9933, #FFD700, #FF6600) border-box;
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.gallery .gallery-item:nth-child(8n+2) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #DC143C, #B22222, #FF1493) border-box;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.gallery .gallery-item:nth-child(8n+3) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #4682B4, #1E3A8A, #005F73) border-box;
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.3);
}

.gallery .gallery-item:nth-child(8n+4) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #228B22, #32CD32, #059669) border-box;
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

.gallery .gallery-item:nth-child(8n+5) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #663399, #8A2BE2, #4B0082) border-box;
    box-shadow: 0 8px 25px rgba(102, 51, 153, 0.3);
}

.gallery .gallery-item:nth-child(8n+6) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF8C42, #E1AD01, #CC5500) border-box;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.gallery .gallery-item:nth-child(8n+7) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #40E0D0, #00BFFF, #0F766E) border-box;
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.3);
}

.gallery .gallery-item:nth-child(8n) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF7F50, #FFB6C1, #FF69B4) border-box;
    box-shadow: 0 8px 25px rgba(255, 127, 80, 0.3);
}

.gallery .gallery-item img {
    transition: all ease-in-out 0.4s;
    border-radius: 12px;
}

.gallery .gallery-item:hover img {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

/* Gallery Grid Enhancement */
.gallery .row {
    margin: 0 -10px;
}

.gallery [class*="col-"] {
    padding: 0 10px 20px 10px;
}

/* Page Title Enhancement for Gallery */
.page-title {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(22, 160, 133, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-title .title-wrapper h1 {
    background: linear-gradient(135deg, #FF6B35 0%, #8B5CF6 50%, #16A085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page-title .title-wrapper p {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Video Section Enhancement */
.ratio.ratio-16x9 {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.ratio.ratio-16x9::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6B35, #8B5CF6, #16A085, #DC2626);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ratio.ratio-16x9:hover::before {
    opacity: 0.7;
}

.ratio.ratio-16x9:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.ratio iframe {
    border-radius: 12px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    line-height: 1.6 !important;
}
