:root {
	--height-title-bar: 50px;
	--height-indicator: 2px;
	--height-close-button: 35px;
}

/* MOBILE */
@media only screen and (max-device-width: 1023px) {
	:root {
		--width-content-carousel: 80dvw;
	}
}
/* PC */
@media only screen and (min-device-width: 1023px) {
	:root {
		--width-content-carousel: 400px; 
	}
}

/* Modal container */
.modal-container {
	/* display: none; */
	position: fixed;
	z-index: 6;
	left: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

/* Modal top positioning */
.modal-top {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto !important;
	transform: none !important;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	border-radius: 0;
	max-width: 100% !important;
	width: 100% !important;
	text-align: center !important;
}

/* Modal content */
.modal-content {
	display: flex;
	align-items: center;
	height: auto;
	flex-flow: column;
	background: #fff;
	border-radius: 10px;
	width: var(--width-content-carousel);
	position: relative;
}

/* MOBILE */
@media only screen and (max-device-width: 1023px) {
	.modal-content {
		max-height:90dvh;
	}
}
/* PC */
@media only screen and (min-device-width: 1023px) {
	.modal-content  {
		max-height:80dvh;
	}
}

/* Content box */
.content-box {
	overflow-y: auto;
    max-height: 70dvh;
}

/* Modal title */
.modal-title * {
	text-align: center;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	line-height: var(--height-title-bar);
	height: var(--height-title-bar);
	font-weight: bolder !important;
	color: black;
}

/* Fixed width */
.fixed-width {
	width: 300px;
}

/* Carousel indicator */
.carousel-indicator {
	background-color: #d4d4d4;
	height: var(--height-indicator);
	margin-left: 0;
	margin-right: 0;
	border-top: 1px #f2f2f2 solid;
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 0;
	display: flex;
	flex-wrap: nowrap;
	margin-top: calc(-1 * var(--bs-gutter-y));
	width:100%;
}

.carousel-indicator>* {
	flex-shrink: unset;
	width: 100%;
	max-width: 100%;
	margin-top: var(--bs-gutter-y);
}

/* Active indicator */
.indicator-active {
	margin: 0;
	background-color: #FFF;
}

/* Scrollable container */
.carousel-content{
	overflow: hidden;
	width: var(--width-content-carousel);
}

/* Full width column */
.full-width {
	flex: 0 0 auto;
	width: 100%;
}

/* Carousel wrapper */
.carousel-wrapper {
	display: flex;
	position: relative;
	width: var(--width-content-carousel);
	height: auto;
	font-size: 13px !important;
	text-align: left !important;
	color: #565656 !important;
	padding-left: 0;
	padding-right: 0;
}

/* Left navigation icon */
.icon-left {
	position: absolute;
	left: 10px;
	top: 0;
	bottom: 0;
	margin: auto;
	transform: inherit;
	z-index: 2;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #66737a94;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

/* Navigation icon */
.icon-nav {
	width: 25px;
	height: auto;
	position: initial;
	transform: inherit;
}

/* Carousel */
.carousel {
	width: 100%;
	float: left;
	font-size: 0px;
	cursor: pointer;
	white-space: nowrap;
	scroll-behavior: smooth;
	margin: auto;
}

.carousel>div {
	object-fit: cover;
	user-select: none;
	display: inline-block;
	width: 100%;
}


/* Media box */
.media-box {
	width: 100%;
	height: auto;
	background: #000;
	flex: none;
	order: 1;
	flex-grow: 0;
	white-space: initial;
	text-align: center;
}

/* Carousel image */
.carousel-image {
	background-size: 100%;
	width: 100%;
	height: auto;
	object-fit: contain;
	min-height:20dvh;
}

/* Carousel video */
.carousel-video {
	width: 100%;
	height: 100%;
}

.carousel-inactive-item {
	display: none;
}

.carousel-active-item.zoom-attachment-media-true{
	display: block;
}

.carousel-active-item.zoom-attachment-media-false {
	display: block;
	aspect-ratio:1;
}

/* Zoom container */
.zoom-container {
	position: absolute;
	top: 0;
	bottom: 0;
	margin: 10px 5px;
	transform: inherit;
	z-index: 2;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #66737a94;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

/* Zoom icon */
.icon-zoom {
	width: 30px;
	height: 30px;
	position: initial !important;
	transform: inherit !important;
}

/* Right navigation icon */
.icon-right {
	position: absolute;
	right: 10px;
	top: 0;
	bottom: 0;
	margin: auto;
	transform: inherit;
	z-index: 2;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #66737a94;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

/* Social media text */
.media-text {
	padding-top: 10px;
	overflow-y: auto !important;
	min-height: 30px;
	width: cacl( 100% - 20px);
	margin: 0 10px;
	margin-bottom: 10px;
	font-family: 'Roboto', sans-serif;
	font-size: 13px !important;
	text-align: left !important;
	color: #565656 !important;
}

/* Divider */
.divider {
	border: none;
	height: 0.5px;
	display: block;
	width: 100%;
	background: #D9D9D9;
}

/* Close modal */
.close-modal {
	text-align: center;
	color: #30ccfc;
	margin: 0 auto;
	padding-bottom: 0;
	font-size: 14px;
	cursor: pointer;
	height : var(--height-close-button);
	line-height: var(--height-close-button);
}
.zoom-container {
	right: 10px;
}

.active {
    margin: 0;
    background-color: #FFF;
}

/* Media queries */
@media screen and (min-width: 993px) {
	.modal-top {
		top: 10%;
	}
	/* No additional styles needed since width: 100% is now in the main .carousel */
}

@media screen and (max-width: 768px) {
	.modal-top {
		top: 5%;
	}
}

.content-box::-webkit-scrollbar {
	width: 0px;
}

.custom-scrollbar-carousel {
	display: block;
	position: absolute;
	top: calc(var(--height-title-bar) + var(--height-indicator));
	right: 0;
	width: 5px;
	height: calc(100% - var(--height-title-bar) - var(--height-indicator) - var(--height-close-button));
	background: rgba(128, 128, 128, 0.3);
	border-radius:  3px;
}

.custom-thumb-carousel {
    width: 100%;
    background: #d9d9d9;
    border-radius: 3px;
    position: absolute;
    top: 0;
}

@keyframes fadeInCs {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutCs {
  from { opacity: 1; }
  to { opacity: 0; }
}

.custom-scrollbar-carousel.fade-in {
  animation: fadeInCs 0.5s forwards;
}

.custom-scrollbar-carousel.fade-out {
  animation: fadeOutCs 0.5s forwards;
}

