/* Default Theme */
.kittmastersgallery.default .gallery-item {
    position: relative;
    padding: 10px;
    transition: box-shadow 0.3s ease;
}

.kittmastersgallery.default .gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kittmastersgallery.default .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kittmastersgallery.default .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.kittmastersgallery.default .gallery-overlay i {
    color: #fff;
    font-size: 24px;
}

.kittmastersgallery.default .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Minimal Theme */
.kittmastersgallery.minimal .gallery-item {
    position: relative;
    padding: 5px;
    transition: transform 0.3s ease;
}

.kittmastersgallery.minimal .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kittmastersgallery.minimal .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kittmastersgallery.minimal .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.kittmastersgallery.minimal .gallery-overlay i {
    color: #fff;
    font-size: 20px;
}

.kittmastersgallery.minimal .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Elegant Theme */
.kittmastersgallery.elegant .gallery-item {
    position: relative;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.kittmastersgallery.elegant .gallery-item:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.kittmastersgallery.elegant .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kittmastersgallery.elegant .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.kittmastersgallery.elegant .gallery-overlay i {
    color: #fff;
    font-size: 28px;
}

.kittmastersgallery.elegant .gallery-item img {
    border-radius: 10px;
}

.kittmastersgallery.elegant .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.kittmastersgallery .kmg-title {
    text-transform: capitalize;
}

/* Caption text block (from labels.txt), shown under each thumbnail */
.kittmastersgallery .gallery-caption {
    padding: 6px 4px 2px;
    font-size: 0.9em;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.kittmastersgallery .gallery-caption .caption-title {
    font-weight: 600;
    display: block;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.kittmastersgallery .gallery-caption .caption-description {
    display: block;
    opacity: 0.8;
    font-size: 0.9em;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
