/* ============================
   MODO 1 — GALERIA LIGHTBOX
============================ */
.galeria-lightbox {
    cursor: pointer;
}

.lightbox-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--branco);
}

.caption-vazio {
	opacity: 0;
}

.lightbox-fullscreen-btn {
    margin-top: 0;
    height: 2.5rem;
    width: 2.5rem;
    border: none;
    border-radius: 0.25rem;
    background: #000000aF;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
}

.custom-lightbox img#lightbox-img {
    height: 70vh;
    width: 90vw;
	max-width: 1000px;
    object-fit: contain;
    border-radius: .25rem;
    transition: opacity 0.3s;
}

.custom-lightbox .close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 2.25rem;
    cursor: pointer;
	z-index: 99999;
}

.custom-lightbox .arrow {
    position: absolute;
    top: 50%;
    font-size: 2rem;
	background: #fff47d;
    padding: 1.5rem .875rem;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
	flex-direction: column;
    align-items: center;
}


.custom-lightbox .prev {
    left: 0px;
}
.custom-lightbox .next {
    right: 0px;
}

.custom-lightbox .lightbox-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-y: hidden;
    overflow-x: auto;
    justify-content: start;
    max-width: 90vw;
    padding-bottom: 15px;
}

.lightbox-thumbnails li {
	list-style-type: none !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	margin-bottom: 0 !important;
}

.lightbox-thumbnails {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.lightbox-thumbnails figure {
	margin: 0 !important;
}

.custom-lightbox .lightbox-thumbnails img {
    width: 130px;
    height: auto;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    border-radius: .25rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.custom-lightbox .lightbox-thumbnails img.active,
.custom-lightbox .lightbox-thumbnails img:hover {
    opacity: 1;
}

/* ============================
   MODO 2 — GALERIA EMBUTIDA
============================ */
.galeria-embutida {
    position: relative;
    text-align: center;
}

.lightbox-caption-embutida {
    text-align: left;
    margin-top: -68px;
    padding: .5rem 1rem;
    background-color: rgba(32, 32, 32, 0.9);
    width: 100%;
    overflow: hidden;
    color: #fff;
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.galeria-embutida .lightbox-main {
    max-width: 100%;
	width: 100%;
    height: 500px;
	object-fit: cover;
    margin-bottom: 0;
}

.galeria-embutida .lightbox-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    gap: .5rem;
    overflow-y: hidden;
    overflow-x: scroll;
    padding-bottom: .5rem;
	width: 100%;
}

.galeria-embutida .lightbox-thumbnails img {
	width: 130px;
    height: auto;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    border-radius: .25rem;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.galeria-embutida .lightbox-thumbnails img.active,
.galeria-embutida .lightbox-thumbnails img:hover {
    opacity: 1;
}

.galeria-embutida .lightbox-arrow {
    position: absolute;
    top: 40%;
    font-size: 2rem;
    background: #fff47d;
    padding: 1.5rem .875rem;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.galeria-embutida .lightbox-arrow.left {
    left: 0;
}
.galeria-embutida .lightbox-arrow.right {
    right: 0;
}

.lightbox-caption-embutida span {
	color: #F8FCFC;
    height: auto;
	font-size: .925rem;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
	}

/* ============================
   Responsividade
============================ */
@media (max-width: 768px) {
	
	
	.custom-lightbox .lightbox-thumbnails {
		max-width: 100%;
	}
	.custom-lightbox {
   	 padding: 0;
	}

	.custom-lightbox img#lightbox-img {
		padding-top: 3rem;
	}
	
	.custom-lightbox .arrow, .galeria-embutida .lightbox-arrow {
		top: calc(50% + 1.5rem);
		padding: 1.5rem .75rem;
	}
	
    .custom-lightbox .lightbox-thumbnails img,
    .galeria-embutida .lightbox-thumbnails img {
        height: 85px;
        width: auto;
    }
	
	.wp-block-gallery.galeria-embutida {
		padding: 0px
	}
	.lightbox-thumbnails {
		padding-left: 0.5em !important;
		padding-right: 0.5em !important;
	}
	.galeria-embutida {
	  position: relative !important;
	  left: 50% !important;;
	  right: 50% !important;
	  width: 100vw !important;
	  margin-left: -50vw !important;
	  margin-right: -50vw !important;
	}

    .custom-lightbox .close {
        top: 10px;
        right: 20px;
    }

	.galeria-embutida .lightbox-arrow {
		top: 30%;
	}
	
	.galeria-embutida .lightbox-main {
		max-width: 100%;
		width: 100%;
		height: 330px;
		object-fit: cover;
	}
	
	.lightbox-caption-embutida {
		text-align: left;
		width: 100%;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: start;
	}
	
	
	
	
}
