/* Mijn Aangepaste Galerij Plugin Stijlen */

/* Hoofdgalerij wrapper - maakt collecties en uitgelichte afbeeldingen naast elkaar */
.gallery-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 0;
    max-width: 100%;
    flex-direction: column;
}

/* Galerij collecties sectie */
.gallery-collections-section {
    min-width: 150px;
}

/* Uitgelichte afbeeldingen sectie */
.gallery-featured-section {
    min-width: 400px;
    width: auto;
    flex: 1;
}

.gallery-index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0;
}

/* Sectie titels */
.gallery-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Galerij index lijst styling */

.gallery-index-list div {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid #939393;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gallery-index-list div:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-index-list div.current-gallery {
    background: #000;
    color: white;
    border-color: #000;
    transform: scale(1.05);
}

.gallery-index-list a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: block;
    font-size: 16px;
    transition: color 0.3s ease;
}

.gallery-index-list div.current-gallery a,
.current-gallery-text {
    color: white;
    font-weight: 700;
    display: block;
    font-size: 16px;
}

/* Terug knop styling */
.gallery-back-button {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.back-to-main {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #000;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 18px;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-to-main:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Galerij container voor afbeeldingen - Masonry Layout */
.my-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 5px;
    gap: 30px;
    margin-top: 1rem;
}

/* Lightbox links */
.my-gallery-container a.glightbox {
    text-decoration: none;
    color: inherit;
    display: block;
	height: fit-content !important;
}

/* Individuele galerij items */
.my-gallery-item {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.my-gallery-container a.glightbox:hover .my-gallery-item,
.my-gallery-item:hover {
    transform: translateY(-4px);
}

.my-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.my-gallery-item-title {
    padding: 1rem 1rem 0rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #000000;
    text-align: center;
    background: white;
}

/* Responsief ontwerp */
@media (max-width: 768px) {
    .gallery-main-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-collections-section,
    .gallery-featured-section {
        min-width: auto;
    }
    
    .gallery-index-list {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .gallery-index-list div {
        padding: 0.6rem 1rem;
        font-size: 14px;
    }
    
    .my-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-main-wrapper {
        margin: 1rem 0;
    }
    
    .gallery-collections-section {
        padding: 1rem;
    }
    
    .gallery-index-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .gallery-index-list div {
        text-align: center;
        padding: 0.8rem;
    }
    
    .back-to-main {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .my-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .my-gallery-item-title {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

.glightbox-clean .gdesc-inner {
  padding: 10px !important;
  text-align: center;
}

.glightbox-clean .gslide-title {
  font-size: 16px !important;
  color: #fff !important;
  margin: 0 !important;
}

.glightbox-clean .gslide-description {
  background: transparent !important;
}