/**
 * DCM Gallery Frontend Styles
 * Responsive Gallery Display
 */

/* Base Gallery Styles */
.dcm-gallery {
	display: grid;
	gap: var(--dcm-gallery-spacing, 10px);
	width: 100%;
	margin: 20px 0;
}

/* Gallery with Albums */
.dcm-gallery-with-albums {
	display: grid;
	grid-template-columns: repeat(var(--dcm-gallery-album-columns, 3), 1fr);
	gap: 30px;
}

.dcm-gallery-with-albums.single-album-view {
	grid-template-columns: 1fr;
}

.dcm-gallery-album {
	margin-bottom: 30px;
}

.dcm-gallery-album.single-album-active {
	width: 100%;
}

.dcm-gallery-album.single-album-active .dcm-gallery-album-preview {
	display: none;
}

.dcm-gallery-album.single-album-active .dcm-gallery-album-content {
	display: block !important;
	border-top: none;
	padding: 20px;
}

.dcm-gallery-album-preview {
	cursor: pointer;
	position: relative;
	border: 2px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 20px 40px 20px;
	background: #fff;
	transition: all 0.3s ease;
	overflow: hidden;
	width: auto;
	height: auto;
	min-width: 200px;
	min-height: 200px;
	aspect-ratio: 1;
}

.dcm-gallery-album-preview:hover {
	border-color: #2271b1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.dcm-gallery-album-preview:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.dcm-gallery-album-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.dcm-gallery-album-title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: #1d2327;
}

.dcm-gallery-album-count {
	font-size: 14px;
	color: #646970;
	background: #f0f0f1;
	padding: 4px 12px;
	border-radius: 12px;
}

.dcm-gallery-album-stacked-preview {
	position: relative;
	height: 200px;
	margin: 0;
	column-count: 1;
	column-gap: 0;
}

.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 250px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	display: block;
	break-inside: avoid;
	page-break-inside: avoid;
}

.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(1) {
	transform: translate(0, 0) rotate(-2deg);
}

.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(2) {
	transform: translate(20px, 10px) rotate(1deg);
}

.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(3) {
	transform: translate(40px, 20px) rotate(-1deg);
}

.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(4) {
	transform: translate(60px, 30px) rotate(2deg);
}

.dcm-gallery-album-preview:hover .dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item {
	transform: translate(0, 0) rotate(0deg) !important;
}

.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item img {
	width: 100%;
	height: auto;
	display: block;
}

.dcm-gallery-album-content {
	padding: 20px;
	border-top: 2px solid #dcdcde;
}

.dcm-gallery-album-content-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.dcm-gallery-album-content-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #1d2327;
}

.dcm-gallery-album-close {
	background: #f0f0f1;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: #1d2327;
}

.dcm-gallery-album-close:hover {
	background: #dcdcde;
	transform: translateX(-2px);
	color: #fff;
}

.dcm-gallery-album-close:hover .dcm-gallery-album-close-icon,
.dcm-gallery-album-close:hover .dcm-gallery-album-close-text {
	color: #fff;
}

.dcm-gallery-album-close:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.dcm-gallery-album-close-icon {
	font-size: 18px;
	line-height: 1;
	color: #1d2327;
}

.dcm-gallery-album-close-text {
	line-height: 1;
	color: #1d2327;
}

.dcm-gallery-album .dcm-gallery {
	margin: 0;
}

.dcm-gallery-album-content-images {
	position: relative;
	min-height: 200px;
}

.dcm-gallery-content-wrapper {
	position: relative;
	min-height: 200px;
}

.dcm-gallery-loading-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9);
	z-index: 10;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dcm-gallery-loading-spinner.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.dcm-gallery-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2271b1;
	border-radius: 50%;
	animation: dcm-gallery-spin 1s linear infinite;
}

@keyframes dcm-gallery-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Pagination Styles */
.dcm-gallery-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
	padding: 20px 0;
	flex-wrap: wrap;
}

.dcm-gallery-pagination-prev,
.dcm-gallery-pagination-next,
.dcm-gallery-pagination-load-more {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 100px;
}

.dcm-gallery-pagination-prev:hover,
.dcm-gallery-pagination-next:hover,
.dcm-gallery-pagination-load-more:hover {
	background: #135e96;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dcm-gallery-pagination-prev:disabled,
.dcm-gallery-pagination-next:disabled {
	background: #dcdcde;
	color: #8c8f94;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.dcm-gallery-pagination-load-more {
	width: 100%;
	max-width: 200px;
}

.dcm-gallery-pagination-load-more:disabled {
	display: none;
}

.dcm-gallery-pagination-numbers {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: center;
}

.dcm-gallery-pagination-number {
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 36px;
	text-align: center;
}

.dcm-gallery-pagination-number:hover {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.dcm-gallery-pagination-number.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
	cursor: default;
}

.dcm-gallery-pagination-number.dots {
	cursor: default;
	border: none;
	background: transparent;
}

.dcm-gallery-pagination-number.dots:hover {
	background: transparent;
	color: #1d2327;
}

/* Slider Pagination Styles */
.dcm-gallery-slider-wrapper {
	position: relative;
	padding: 0 70px;
	margin: 20px 0;
	overflow: visible;
}

.dcm-gallery-slider-wrapper .dcm-gallery {
	margin: 0;
}

.dcm-gallery-pagination[data-pagination-type="slider"] {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0;
	margin: 0;
	pointer-events: none;
	z-index: 10;
	gap: 0;
	width: 100%;
}

.dcm-gallery-pagination-slider-btn {
	width: 50px !important;
	height: 50px !important;
	min-width: 50px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: #2271b1 !important;
	border: 2px solid #2271b1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
	transition: all 0.3s ease !important;
	pointer-events: auto !important;
	position: absolute !important;
	margin: 0 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}

.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-prev {
	left: -70px !important;
	right: auto !important;
}

.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-next {
	right: -70px !important;
	left: auto !important;
}

.dcm-gallery-pagination-slider-btn:hover:not(:disabled) {
	background: #135e96 !important;
	border-color: #135e96 !important;
	transform: scale(1.1) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-prev:hover:not(:disabled) {
	transform: translateY(-50%) scale(1.1) !important;
}

.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-next:hover:not(:disabled) {
	transform: translateY(-50%) scale(1.1) !important;
}

.dcm-gallery-pagination-slider-btn:active:not(:disabled) {
	transform: scale(0.95) !important;
}

.dcm-gallery-pagination-slider-btn:disabled {
	background: #dcdcde !important;
	border-color: #dcdcde !important;
	color: #8c8f94 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

.dcm-gallery-pagination-slider-icon {
	display: inline-block;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
	width: auto;
	height: auto;
}

.dcm-gallery-pagination-slider-btn:disabled .dcm-gallery-pagination-slider-icon {
	color: #8c8f94;
}

/* Grid Layout */
.dcm-gallery-grid {
	grid-template-columns: repeat(var(--dcm-gallery-columns, 3), 1fr);
}

.dcm-gallery-grid .dcm-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f6f7f7;
	padding-bottom: 100%;
}

.dcm-gallery-grid .dcm-gallery-item .dcm-gallery-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.dcm-gallery-grid .dcm-gallery-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dcm-gallery-grid .dcm-gallery-item:hover img {
	transform: scale(1.05);
}

/* Tiles Layout */
.dcm-gallery-tiles {
	grid-template-columns: repeat(var(--dcm-gallery-columns, 3), 1fr);
}

.dcm-gallery-tiles .dcm-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f6f7f7;
	aspect-ratio: 1;
}

.dcm-gallery-tiles .dcm-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dcm-gallery-tiles .dcm-gallery-item:hover img {
	transform: scale(1.1);
}

/* Masonry Layout */
.dcm-gallery-masonry {
	column-count: var(--dcm-gallery-columns, 3);
	column-gap: var(--dcm-gallery-spacing, 10px);
	display: block;
}

.dcm-gallery-masonry .dcm-gallery-item {
	display: inline-block;
	width: 100%;
	margin-bottom: var(--dcm-gallery-spacing, 10px);
	break-inside: avoid;
	page-break-inside: avoid;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f6f7f7;
}

.dcm-gallery-masonry .dcm-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.dcm-gallery-masonry .dcm-gallery-item:hover img {
	transform: scale(1.05);
}

/* Gallery Item */
.dcm-gallery-item {
	position: relative;
	cursor: pointer;
}

.dcm-gallery-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.dcm-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* Caption */
.dcm-gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: #fff;
	padding: 15px 10px 10px;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.dcm-gallery-item:hover .dcm-gallery-caption {
	opacity: 1;
}

/* Lightbox Overlay */
.dcm-gallery-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.dcm-gallery-lightbox.active {
	display: flex;
}

.dcm-gallery-lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	margin: auto;
}

.dcm-gallery-lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}

.dcm-gallery-lightbox-caption {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	text-align: center;
	font-size: 16px;
	padding: 10px 20px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 4px;
	white-space: nowrap;
	max-width: 80vw;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dcm-gallery-lightbox-counter {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	text-align: center;
	font-size: 14px;
	padding: 8px 16px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 4px;
	font-weight: 500;
	white-space: nowrap;
	z-index: 11;
}

.dcm-gallery-lightbox-caption + .dcm-gallery-lightbox-counter {
	bottom: -75px;
}

.dcm-gallery-lightbox-close {
	position: absolute !important;
	top: 20px !important;
	right: 20px !important;
	width: 44px !important;
	height: 44px !important;
	background: rgba(0, 0, 0, 0.6) !important;
	border: 2px solid rgba(255, 255, 255, 0.9) !important;
	border-radius: 50% !important;
	color: #fff !important;
	font-size: 28px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	z-index: 10 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	-moz-appearance: none !important;
	text-decoration: none !important;
	outline: none !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.dcm-gallery-lightbox-close:hover {
	background: rgba(0, 0, 0, 0.8) !important;
	border-color: #fff !important;
	transform: rotate(90deg) scale(1.1) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.dcm-gallery-lightbox-close:active {
	transform: rotate(90deg) scale(0.95) !important;
}

.dcm-gallery-lightbox-close::before {
	content: '×' !important;
	display: inline-block !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	font-size: 28px !important;
	color: #fff !important;
	width: auto !important;
	height: auto !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.dcm-gallery-lightbox-nav {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 50px !important;
	height: 50px !important;
	background: rgba(0, 0, 0, 0.6) !important;
	border: 2px solid rgba(255, 255, 255, 0.9) !important;
	border-radius: 50% !important;
	color: #fff !important;
	font-size: 32px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	z-index: 10 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	-moz-appearance: none !important;
	text-decoration: none !important;
	outline: none !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.dcm-gallery-lightbox-nav:hover {
	background: rgba(0, 0, 0, 0.8) !important;
	border-color: #fff !important;
	transform: translateY(-50%) scale(1.1) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.dcm-gallery-lightbox-nav:active {
	transform: translateY(-50%) scale(0.95) !important;
}

.dcm-gallery-lightbox-prev {
	left: 20px !important;
}

.dcm-gallery-lightbox-prev::before {
	content: '‹' !important;
	display: inline-block !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	font-size: 32px !important;
	color: #fff !important;
	width: auto !important;
	height: auto !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	margin-left: -2px !important;
	box-sizing: border-box !important;
}

.dcm-gallery-lightbox-next {
	right: 20px !important;
}

.dcm-gallery-lightbox-next::before {
	content: '›' !important;
	display: inline-block !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	font-size: 32px !important;
	color: #fff !important;
	width: auto !important;
	height: auto !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	margin-right: -2px !important;
	box-sizing: border-box !important;
}

.dcm-gallery-lightbox-nav:disabled {
	opacity: 0.3 !important;
	cursor: not-allowed !important;
	background: rgba(0, 0, 0, 0.3) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
}

.dcm-gallery-lightbox-nav:disabled:hover {
	transform: translateY(-50%) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.dcm-gallery-with-albums {
		grid-template-columns: repeat(var(--dcm-gallery-album-mobile-columns, 1), 1fr);
		gap: 20px;
	}
	
	.dcm-gallery-grid,
	.dcm-gallery-tiles {
		grid-template-columns: repeat(var(--dcm-gallery-mobile-columns, 2), 1fr) !important;
		gap: var(--dcm-gallery-mobile-spacing, 5px);
	}
	
	.dcm-gallery-masonry {
		column-count: var(--dcm-gallery-mobile-columns, 2) !important;
		column-gap: var(--dcm-gallery-mobile-spacing, 5px);
	}
	
	.dcm-gallery-masonry .dcm-gallery-item {
		margin-bottom: var(--dcm-gallery-mobile-spacing, 5px);
	}
	
	.dcm-gallery-album-stacked-preview {
		height: 150px;
	}
	
	.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item {
		max-width: 180px;
	}
	
	.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(2) {
		transform: translate(15px, 8px) rotate(1deg);
	}
	
	.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(3) {
		transform: translate(30px, 15px) rotate(-1deg);
	}
	
	.dcm-gallery-album-stacked-preview .dcm-gallery-album-preview-item:nth-child(4) {
		transform: translate(45px, 22px) rotate(2deg);
	}
	
	.dcm-gallery-album-title {
		font-size: 18px;
	}
	
	.dcm-gallery-album-content-title {
		font-size: 20px;
	}
	
	.dcm-gallery-lightbox-content {
		max-width: 95%;
	}
	
	.dcm-gallery-lightbox-close {
		top: 10px !important;
		right: 10px !important;
		width: 38px !important;
		height: 38px !important;
		font-size: 24px !important;
		border-width: 2px !important;
	}
	
	.dcm-gallery-lightbox-close::before {
		font-size: 24px !important;
		line-height: 1 !important;
	}
	
	.dcm-gallery-lightbox-nav {
		width: 42px !important;
		height: 42px !important;
		font-size: 26px !important;
		border-width: 2px !important;
	}
	
	.dcm-gallery-lightbox-nav::before {
		font-size: 26px !important;
		line-height: 1 !important;
	}
	
	.dcm-gallery-lightbox-prev {
		left: 10px !important;
	}
	
	.dcm-gallery-lightbox-prev::before {
		margin-left: -2px !important;
	}
	
	.dcm-gallery-lightbox-next {
		right: 10px !important;
	}
	
	.dcm-gallery-lightbox-next::before {
		margin-right: -2px !important;
	}
	
	.dcm-gallery-lightbox-caption {
		bottom: -35px;
		font-size: 14px;
		padding: 8px 15px;
	}
	
	.dcm-gallery-lightbox-counter {
		bottom: -35px;
		font-size: 13px;
		padding: 6px 12px;
	}
	
	.dcm-gallery-lightbox-caption + .dcm-gallery-lightbox-counter {
		bottom: -65px;
	}
	
	.dcm-gallery-pagination {
		margin-top: 20px;
		padding: 15px 0;
		gap: 8px;
	}
	
	.dcm-gallery-pagination[data-pagination-type="slider"] {
		margin-top: 0;
		padding: 0;
	}
	
	.dcm-gallery-pagination-prev,
	.dcm-gallery-pagination-next,
	.dcm-gallery-pagination-load-more {
		padding: 8px 16px;
		font-size: 13px;
		min-width: 80px;
	}
	
	.dcm-gallery-pagination-number {
		padding: 6px 10px;
		font-size: 13px;
		min-width: 32px;
	}
	
	.dcm-gallery-pagination-slider-btn {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
	}
	
	.dcm-gallery-pagination-slider-icon {
		font-size: 24px;
	}
	
	.dcm-gallery-slider-wrapper {
		padding: 0 30px;
	}
	
	.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-prev {
		left: -30px !important;
	}
	
	.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-next {
		right: -30px !important;
	}
}

@media screen and (max-width: 480px) {
	.dcm-gallery-slider-wrapper {
		padding: 0 24px;
	}
	
	.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-prev {
		left: -24px !important;
	}
	
	.dcm-gallery-pagination[data-pagination-type="slider"] .dcm-gallery-pagination-next {
		right: -24px !important;
	}
	
	.dcm-gallery-pagination-slider-btn {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
	}
	
	.dcm-gallery-pagination-slider-icon {
		font-size: 20px;
	}
}

@media screen and (max-width: 480px) {
	.dcm-gallery-grid,
	.dcm-gallery-tiles {
		grid-template-columns: repeat(var(--dcm-gallery-mobile-columns, 1), 1fr) !important;
	}
	
	.dcm-gallery-masonry {
		column-count: var(--dcm-gallery-mobile-columns, 1) !important;
	}
}

/* Loading State */
.dcm-gallery-item img {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dcm-gallery-item img.loaded {
	opacity: 1;
}

/* Accessibility */
.dcm-gallery-link:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.dcm-gallery-lightbox-close:focus,
.dcm-gallery-lightbox-nav:focus {
	outline: 3px solid rgba(255, 255, 255, 0.8) !important;
	outline-offset: 3px !important;
	background: rgba(0, 0, 0, 0.8) !important;
	border-color: #fff !important;
}

/* Print Styles */
@media print {
	.dcm-gallery-lightbox {
		display: none !important;
	}
	
	.dcm-gallery {
		page-break-inside: avoid;
	}
}

