/* Other Work Overview - Grid Layout */

.other-work-overview {
	margin: 2rem 0;
}

.other-work-grid {
	columns: 4;
	column-gap: 2rem;
}

/* Wide Desktop - 4 columns */
@media (max-width: 1440px) {
	.other-work-grid {
		columns: 4;
		column-gap: 2rem;
	}
    .other-work-grid.type-carousel { columns: 3; }
    .other-work-grid.type-carousel > div:nth-child(4n+1) {
        display: none;
    }
}

/* Desktop - 3 columns */
@media (max-width: 1024px) {
	.other-work-grid {
		columns: 3;
		column-gap: 1.5rem;
	}
}

/* Tablet - 2 columns */
@media (max-width: 768px) {
	.other-work-grid {
		columns: 2;
		column-gap: 1.5rem;
	}
    .other-work-grid.type-carousel { columns: 2; }
    .other-work-grid.type-carousel > div:nth-child(3n+1) {
        display: none;
    }

}

/* Mobile - 1 column */
@media (max-width: 600px) {
	.other-work-grid {
		columns: 1 !important;
		column-gap: 1rem;
	}
}

/* Individual Item */
.other-work-item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	break-inside: avoid;
	/* margin-bottom: 2rem; */
}

.other-work-item__media-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.other-work-item__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	background-color: #efefef;
	color: #999;
	font-size: 14px;
	text-align: center;
	padding: 1rem;
}

/* Image */
.other-work-item__image {
	margin: 0;
	overflow: hidden;
	width: 100%;
}

.other-work-item__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.other-work-item__image:hover img {
	transform: scale(1.05);
}

/* Video */
.other-work-item__video-wrapper {
	position: relative;
	width: 100%;
	background-color: #000;
	overflow: hidden;
}

.other-work-item__video {
	display: block;
	width: 100%;
	height: auto;
}

/* Item Info */
.other-work-item__info {
	padding: 1rem 0;
	padding-top: .5rem;
    display: flex;
    justify-content: space-between;
    color: var(--c-grey);
	font-size: 1rem;
}

.other-work-grid.type-grid .other-work-item__info  {
}

.other-work-item__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	word-break: break-word;
}
.flickity-slider img {
	display: block;
}