/* YC Hotel Gallery Shortcode - full clickable blocks with zooming background */
.yc-hotel-gallery-shortcode {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.yc-hotel-gallery-block {
	position: relative !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 460px;
	border-radius: 12px;
	padding: 32px 20px;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
}

.yc-hotel-gallery-block::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--yc-hotel-gallery-bg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: transform 0.6s ease;
	transform-origin: center center;
	z-index: -2;
	pointer-events: none;
}

.yc-hotel-gallery-block::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.22);
	transition: background 0.3s ease;
	z-index: -1;
	pointer-events: none;
}

.yc-hotel-gallery-block:hover,
.yc-hotel-gallery-block:focus {
	color: #fff !important;
	text-decoration: none !important;
}

.yc-hotel-gallery-block:hover::before,
.yc-hotel-gallery-block:focus::before,
.yc-hotel-gallery-block:focus-within::before {
	transform: scale(1.1);
}

.yc-hotel-gallery-block:hover::after,
.yc-hotel-gallery-block:focus::after,
.yc-hotel-gallery-block:focus-within::after {
	background: rgba(0, 0, 0, 0.35);
}

.yc-hotel-gallery-overlay {
	display: none;
}

.yc-hotel-gallery-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.yc-hotel-gallery-title {
	display: block;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.15;
	font-weight: 700;
	color: #fff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.yc-hotel-gallery-cta {
	display: block;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
	color: #fff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}




/* v1.0.3 - Content linksonder en links uitgelijnd */
.yc-hotel-gallery-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 32px;
    box-sizing: border-box;
}

.yc-hotel-gallery-title,
.yc-hotel-gallery-cta {
    text-align: left;
}

@media (max-width: 767px) {
    .yc-hotel-gallery-content {
        padding: 24px;
    }
}


/* v1.0.5 - Hotel gallery layout fixes */
.yc-hotel-gallery-grid,
.yc-hotel-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.yc-hotel-gallery-item {
    min-height: 460px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: block;
    text-decoration: none;
}

.yc-hotel-gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    transform-origin: center center;
    z-index: 1;
    pointer-events: none;
}

.yc-hotel-gallery-item:hover::before,
.yc-hotel-gallery-item:focus::before {
    transform: scale(1.1);
}

.yc-hotel-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
    transition: background .3s ease;
    z-index: 2;
    pointer-events: none;
}

.yc-hotel-gallery-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    text-align: left;
    padding: 32px;
    box-sizing: border-box;
}

.yc-hotel-gallery-title,
.yc-hotel-gallery-cta {
    text-align: left;
}



@media (max-width: 767px) {
    .yc-hotel-gallery-content {
        padding: 24px;
    }
}


/* v1.0.6 - Real img element for image alt text while visual design remains CSS background */
.yc-hotel-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}


/* v1.0.7 - h3 title reset so styling remains unchanged */
.yc-hotel-gallery-title {
    margin-top: 0;
    margin-bottom: 0;
}


/* v1.0.8 - CTA arrow */
.yc-hotel-gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}






/* v1.0.10 - Real CTA arrow */
.yc-hotel-gallery-arrow {
    display: inline-block;
    transition: transform .3s ease;
}

.yc-hotel-gallery-block:hover .yc-hotel-gallery-arrow,
.yc-hotel-gallery-block:focus .yc-hotel-gallery-arrow {
    transform: translateX(4px);
}

/* v1.1.19 - Mobile: 1 column only from 767px */
@media (max-width: 767px) {
    .yc-hotel-gallery-shortcode {
        grid-template-columns: 1fr;
    }
}
