.c-gallery {
}

.c-gallery__link {
    @apply block relative;

    &::before {
        content: '';
        opacity: 0;
    }

    &:hover {
        &::before {
            @apply absolute inset-0 z-50 block h-full w-full opacity-75;
            background-color: rgba(0, 0, 0, .5);
            transition: opacity $transition-time linear;
        }
    }
}

.c-gallery__image {
    @apply block relative z-10;
}


.c-gallery__caption {
    .lg-sub-html & {
        @apply text-lg mt-0;
    }
}


.c-gallery__zoom-icon {
    font-size: 2.5rem;
    position: absolute;
    z-index: 100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity $transition-time linear;
    color: #fff;

    .c-gallery__link:hover & {
        opacity: 1;
    }
}
