/*** custom image box ***/
/* Ensure image-wrap behaves correctly with alignment */
.custom-image-box .image-wrap {
    display: inline-block;
    overflow: hidden;
}

/* Circle shape styling */
.custom-image-shape-circle .image-wrap {
    border-radius: 50%;
}

.box-subtitle {
	position: absolute;
  top: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* gallery */
.custom-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.custom-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* custom image list */
.custom-image-box-list {
  display: grid;
}
.custom-image-box-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
	overflow: hidden;
}
.custom-image-box-item .image-content {
  flex-grow: 1;
}
.custom-image-box-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.custom-image-box-item {
    transition: all 0.3s ease;
}

.custom-image-box-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


/* image gallery carousel */
.custom-gallery-carousel {
    position: relative;
    padding: 20px 0 50px;
}

.custom-gallery-carousel .swiper {
    width: 100%;
    height: 100%;
}

.custom-gallery-carousel .swiper-slide {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-gallery-carousel .slide-inner,
.custom-gallery-carousel .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.custom-gallery-carousel .slide-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-gallery-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-gallery-carousel .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.custom-gallery-carousel .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    color: white;
    padding: 30px 20px;
}

/* custom list icon */
.custom-icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.custom-icon-list.inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.custom-icon-list li {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.custom-icon-list.inline li {
  margin-right: 15px;
}

.custom-icon-list img {
  display: inline-block;
}
.custom-gallery-carousel .slide-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.custom-gallery-carousel .slide-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #f8f8f8;
}

/* Navigation arrows */
.custom-gallery-carousel .swiper-button-prev,
.custom-gallery-carousel .swiper-button-next {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.custom-gallery-carousel .swiper-button-prev::after,
.custom-gallery-carousel .swiper-button-next::after {
    font-family: 'swiper-icons';
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.custom-gallery-carousel .swiper-pagination {
    bottom: 10px !important;
}

.custom-gallery-carousel .swiper-pagination-bullet {
    opacity: 1;
    transition: all 0.3s ease;
}

.custom-gallery-carousel .swiper-pagination-bullet-active {
    transform: scale(1.2);
}

/* Hover effects */
.custom-gallery-carousel .swiper-slide:hover .slide-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.custom-gallery-carousel .slide-link:hover .slide-content {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* custom video */
.custom-video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.custom-video-wrapper iframe,
.custom-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}