/* Prevent horizontal scroll caused by slick carousel arrows
   overflowing outside the viewport */
.main-container {
    overflow-x: hidden;
}

/* =========================================
   3D GALLERY WRAP STYLES
   ========================================= */

/* The Stage */
.gallery-wrap-stage {
    width: 100%;
    height: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; 
    overflow: visible;
    cursor: grab;
}

/* The Cube */
.gallery-wrap-cube {
    position: relative;
    transform-style: preserve-3d;
    width: var(--w);
    height: var(--h);
    
    /* Default Angle: Shows Left & Bottom as requested */
    transform: rotateY(35deg) rotateX(20deg);
    
    transition: transform 0.1s ease-out;
}

/* Shared styles for faces */
.gw-face {
    position: absolute;
    left: 0; 
    top: 0;
    box-sizing: border-box;
    background-repeat: no-repeat;
    backface-visibility: hidden; 
    outline: 1px solid rgba(0,0,0,0.05);
    
    /* --- TEXTURE MAPPING MAGIC --- */
    /* Calculate the "Unfolded" size of the image.
       Width = Front Width + Left Depth + Right Depth
       Height = Front Height + Top Depth + Bottom Depth
    */
    background-size: calc(var(--w) + (2 * var(--d))) calc(var(--h) + (2 * var(--d)));
}

/* --- FACE SLICING & LIGHTING --- */

/* 1. FRONT FACE: Center the image */
.gw-front {
    width: var(--w);
    height: var(--h);
    transform: translateZ(calc(var(--d) / 2));
    /* Position center shows the main part, cropping out the edges for the sides */
    background-position: center center;
}

/* 2. LEFT STRIP: Show the left edge */
.gw-left {
    width: var(--d);
    height: var(--h);
    /* Move to left side */
    left: calc((var(--w) - var(--d)) / 2);
    transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
    
    /* Align image to the absolute left edge */
    background-position: left center;
    filter: brightness(0.7);
}

/* 3. RIGHT STRIP: Show the right edge */
.gw-right {
    width: var(--d);
    height: var(--h);
    /* Move to right side */
    left: calc((var(--w) - var(--d)) / 2); 
    transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
    
    /* Align image to the absolute right edge */
    background-position: right center;
    filter: brightness(0.7); 
}

/* 4. TOP STRIP: Show the top edge */
.gw-top {
    width: var(--w);
    height: var(--d);
    /* Move to top */
    top: calc((var(--h) - var(--d)) / 2);
    transform: rotateX(90deg) translateZ(calc(var(--h) / 2));
    
    /* Align image to the absolute top edge */
    background-position: center top;
    filter: brightness(1.15); 
}

/* 5. BOTTOM STRIP: Show the bottom edge */
.gw-bottom {
    width: var(--w);
    height: var(--d);
    /* Move to bottom */
    top: calc((var(--h) - var(--d)) / 2);
    transform: rotateX(-90deg) translateZ(calc(var(--h) / 2));
    
    /* Align image to the absolute bottom edge */
    background-position: center bottom;
    
    filter: brightness(0.4); 
    box-shadow: 0 0 50px rgba(0,0,0,0.4); 
}

/* 6. BACK FACE */
.gw-back {
    width: var(--w);
    height: var(--h);
    transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
    background-size: cover; /* cover the back */
    background-position: center;
    filter: brightness(0.25); 
}

/* Visual state for disabled sections */
.option-disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

svg.wishlist path {
  fill: #FF826B; /* Peach */
}

svg.nowishlist path {
  fill: #000000; /* Black (or use currentColor if inheriting from parent) */
}

.wishlist-button:hover svg path {
	fill: #FF826B !important;
  }

#image-container {
	overflow: hidden;
}

#art-button {

	top: 10px;
	right: 10px;
	/*padding: 10px 20px;*/
	background-color: #007bff;
	color: #fff;
	border: none;
	cursor: pointer;
}

.head-inp-wrap.position-relative.header-bar.w-100 {
	margin-left: 10px;
}

.main-image {
	position: relative;
	width: 100%;
	transform-origin: top;
	transition: transform 0.3s ease-in-out;
}

#main-image-container {
	width: 100%;
	/*height: 500px;*/
	overflow: hidden;
}



#background-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	object-fit: cover;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s;
	background-image: url('admin/assets/images/Artwork/art-on-walls.jpg');
	z-index: -1;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
}

.show-background #background-image {
	opacity: 1;
}

.main-image {
	transform: scale(1);
	transition: transform 0.5s;
}

.show-background .main-image {
	transform: scale(0.2) translate(0%, 50%);

}


.icon-container {
	position: relative;
	display: inline-flex;
	/* Display icons in a row */
	align-items: center;
	/* Vertically center icons */
	cursor: pointer;
	/* Change cursor to pointer */
}


#add-to-cart-button {
	background-color: black;
	color: white;
	padding: 7px 20px;
	border: none;
	cursor: pointer;
	border-radius: 5px;
	/* height: 40px; */
}



@media screen and (max-width: 768px) {
	div#searchShow {
		left: -20px !important;
	}

}

@media screen and (max-width: 1023) {
	ul.navbar-nav.menu-container.w-100 {
		justify-content: center;
	}

}

/* Ensure thumbnails display in a single row */
.thumbnail-container {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	/* Enable horizontal scrolling if needed */
}

/* Optional: Style adjustments for thumbnail images */
.gallery-item {
	margin-right: 10px;
	/* Adjust spacing between thumbnails */
}

/* Style the dots */
.dot-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	/* margin-bottom: 8px; */
}

.dot {
	width: 14px;
	height: 14px;
	margin: 0 5px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff826b 0%, #ffb88c 100%);
	box-shadow: 0 2px 8px rgba(255,130,107,0.15);
	opacity: 0.5;
	transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
	border: 2px solid #fff;
	outline: none;
}

.dot.active,
.dot:hover {
	opacity: 1;
	transform: scale(1.18);
	box-shadow: 0 4px 16px rgba(255,130,107,0.25);
	border-color: #ff826b;
}


.product-display {
	display: grid;
	grid-template-columns: 65fr 35fr;
	column-gap: 1.5rem;
	margin: 0 auto;
}

.product-preview {
	background-color: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.frame-preview {
	/* width: 100%;
	border: 20px solid #000;
	padding: 2rem;
	background-color: #f4e7c9;
	max-height: 75vh;  */
	/* justify-content: center; */
	text-align: center;
}

.frame-preview img,
.frame-preview svg {
	object-fit: contain;
	max-height: 75vh;
}

.customization {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow-y: scroll;
	overflow-x: hidden;
	scrollbar-width: none;
	/* Hide scrollbar for firefox */
}

/* Hide scrollbar for WebKit browsers */
.customization::-webkit-scrollbar {
	display: none;
}

@media screen and (max-width: 991px) {
	.product-display {
		grid-template-columns: 1fr;
		column-gap: 0rem;
		row-gap: 1rem;
		width: 100%;
	}

	.product-preview {
		width: 100%;
		padding: 1rem;
	}

	.frame-preview img,
	.frame-preview svg {
		width: 100%;
	}
}



.section {
	margin-bottom: 24px;
}

.section-title {
	font-weight: 500;
	/* margin-bottom: 16px; */
	text-transform: capitalize;
}

#toggleIcon {
	/* to remove extra 4px space due to line-height */
	display: block;
	cursor: pointer;
}

.final-price {
	color: #666;
	/* font-size: 16px; */
}

.dimension-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dimension-sel-container {
	position: relative;
	width: 200px;
	/* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; */
}

.dimension-sel-header {
	border: 1px dashed #ccc;
	padding: 8px 12px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-radius: 4px;
}

.dimension-sel-header.active {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.dimension-sel-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #eee;
	border-top: none;
	display: none;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	/* as slick has z-index of 5*/
	z-index: 6;
}

.dimension-sel-options.show {
	display: block;
}

.dimension-option {
	padding: 8px 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.dimension-option.selected .checkbox {
	background-color: #ff826b;
}

.dimension-option.selected .checkbox::after {
	content: "✓";
	font-size: 12px;
	color: #fff;
}

.dimension-option:hover {
	background-color: #000;
	color: #fff;
}

.checkbox {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	border-radius: 3px;
	border: 1px solid #ddd;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.chevron {
	border: solid #666;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	transform: rotate(45deg);
	margin-top: -4px;
}

.dimension-sel-header.active .chevron {
	transform: rotate(-135deg);
	margin-top: 2px;
}

.moulding-options {
	display: flex;
	gap: 8px;
}

.moulding-option {
	flex-shrink: 1;
	height: 3rem;
	width: 125px;
	min-width: 125px;
	max-width: 125px;
	border: 1px solid #ddd;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s;
	background-size: auto 100%;
	background-repeat: repeat-x;
	overflow-x: hidden;
	overflow-y: hidden;
}

.vertical-center {
	/* As display:flex gets overridden by slick, Match the line-height to the height of the div.*/
	line-height: 3rem;
	/* Horizontally center the text */
	text-align: center;
	/* we have conflict of color with declaration on slick classes*/
	color: #000 !important;
}

.moulding-option.selected {
	border: 2px solid #ff826b;
	/* outline: 2px solid #ff826b;
	outline-offset: .25rem; */
}

.material-options,
.mat-width-options {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.material-option,
.mat-width-option {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s;
}

.material-option:hover,
.mat-width-option:hover {
	background-color: #f5f5f5;
}

.material-option.selected,
.mat-width-option.selected {
	background-color: #000;
	color: white;
	border-color: #000;
}

.custom-mat-wrap {
	display: none;
}

.floating-label-input {
	position: relative;
}

.floating-label-input input {
	width: 100%;
	padding: 8px 10px;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.floating-label-input label {
	position: absolute;
	/* content height is 24 px, hence half of that */
	top: 12px;
	left: 10px;
	font-size: 0.9rem;
	color: #666;
	transition: all 0.3s ease;
	pointer-events: none;
}

.floating-label-input span {
	position: absolute;
	color: #666;
	font-size: 0.9rem;
	top: 12px;
	right: 5px;
	transition: all 0.3s ease;
	display: none;
}

/* input should be above label for sibling selector to work */
.floating-label-input input:focus~label,
.floating-label-input input:not(:placeholder-shown)~label {
	/* 8px for padding and 1px for border */
	top: -9px;
	left: 10px;
	font-size: 0.75rem;
	color: #000;
	background-color: #fff;
	border-left: 1px solid black;
	border-right: 1px solid black;
	padding: 0 5px;
}

/* label which is a subsequent sibling of input which is not in focus and is filled with some data*/
.floating-label-input input:not(:focus):not(:placeholder-shown)~label {
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
}

.floating-label-input input:focus~span,
.floating-label-input input:not(:placeholder-shown)~span {
	display: block;
}

.floating-label-input input:focus {
	outline: none;
	border-color: #000;
}

.floating-label-input .hide-on-input {
	display: block;
}

.floating-label-input input:not(:placeholder-shown)~.hide-on-input {
	display: none;
}

.mat-color-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mat-color-option {
	flex-grow: 0;
	flex-shrink: 0;
	cursor: pointer;
	border-radius: 0.5rem;
	border: 1px solid #ddd;
	min-height: 2.5rem;
	min-width: 2.5rem;
	max-height: 2.5rem;
	max-width: 2.5rem;
}

.mat-color-option.selected {
	border-color: #000;
	border: 2px;
}

.product-description-grid {
	display: grid;
	grid-template-columns: max-content 1fr;
	/* First column auto-sizes; second column fills remaining space */
	gap: .5rem 1.5rem;
	/* 8px column gap (between heading and content), 16px row gap */
	width: 100%;
	padding: 0 25px;
}

.art-description {
	font-stretch: normal;
}

.product-description-grid .info-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.125rem 1rem;
}

.product-description-grid .label {
	font-weight: 600;
	color: #333;
	/* font-size: 1.125rem; */
}

.product-description-grid .value,
.product-description-grid a {
	color: #666;
	font-weight: 400;
	/* font-size: 1.125rem; */
	text-transform: capitalize;
}

.product-description-grid a:hover {
	color: #ff826b;
}

.pc-dimension {
	/* as we are having 4 images in a container, 25vw will always be bigger than 100% of parent container. 
	This line is for when slick hasn't loaded yet or doesn't load. slick overwrites this through on-element styling.*/
	width: min(25vw, 100%);
}

.image-cover img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

@media (max-width: 767px) {
	div#searchShow {
		left: -20px !important;
	}

	.product-description-grid {
		grid-template-columns: 1fr;
		/* Single column layout */
		gap: 0rem;
	}

	.pc-dimension {
		width: 100%;
	}

}

@media (max-width: 768px) and (max-width: 991px) {
	.pc-dimension {
		width: min(33vw, 100%);
	}
}

@media screen and (max-width: 1023px) {
	ul.navbar-nav.menu-container.w-100 {
		justify-content: center;
	}
}
/* Mobile styles (up to 480px) */
@media (max-width: 480px) {
  .artist-card-name {
    font-size: 10px !important;
  }

  .art-card-price {
    font-size: 10px !important;
  }

  div.artist-detail .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  div.artist-detail.p-24.border.rounded.p-4.d-grid {
    padding: 1rem !important;
  }

  div.artist-detl h5.link-to {
    font-size: 1rem !important;
  }

  div.artist-detl span {
    font-size: 0.9rem !important;
  }

  div.art-prof .art-para {
    font-size: 0.9rem !important;
    text-align: center !important;
  }

  .cart-fav-svg {
    right: 5px;
    top: 0px;
  }

  #art-button,
  #add-to-cart-button {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }

  .my-slider {
    padding: 0 50px;
}
}

/* Small mobile tweaks (between 481px and 575px) */
@media (min-width: 481px) and (max-width: 575px) {
  .artist-card-name {
    font-size: 10px !important;
  }

  .my-slider {
    padding: 0 50px;
}
 
}

/* Tablet and up (768px and above) */
@media (min-width: 768px) {
  .prev-btn-mob,
  .next-btn-mob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: #000;
    padding: 12px 16px;
    font-size: 24px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }

  .prev-btn-mob {
    left: 20px;
  }

  .next-btn-mob {
    right: 20px;
  }
}

.product-description-wrap {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.product-desc-title h2 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 8px;
  font-weight: 600;
  border-left: 4px solid #ff826b;
  padding-left: 10px;
}

.art-info {
  font-size: 0.95rem;
  line-height: 1.6;
}

.art-description {
  color: #555;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
}

.info-grid .label {
  font-weight: 600;
  color: #444;
  margin-bottom: 2px;
}

.info-grid .value a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-grid .value a:hover {
  color: #d76053;
  text-decoration: underline;
}

@media (min-width: 575px) {
  .info-grid {
    grid-template-columns: 120px 1fr;
    column-gap: 16px;
    align-items: start;
  }
}

.WSA-wrapper {
	flex-wrap: wrap;
	gap: 1rem;
}
  
.wishlist-button svg,
.icon-container svg {
	cursor: pointer;
}
  
.icon-container {
	position: relative;
}

@media (max-width: 1200px) {
  .cart-fav-svg {
	top: 0px;
  }
}

@media (max-width: 991px) {
	.cart-fav-svg {
	  top: 5px;
	}
}

/* Why We're Adored by Art Lovers Section */
.art-lovers-section {
    padding: 40px 0px 16px 0px;
    text-align: center;
}

.art-lovers-title {
	text-align: left;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
}

.feature-card.expanded {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: #ff826b; 
}

.feature-card h3 {
    font-size: 20px; 
    font-weight: 600;
    color: #333;
    margin: 0;
}

.feature-card p {
    font-size: 16px; 
    color: #555;
    margin: 0;
}

.gallery-wrap-stage {
    width: 100%;
    height: 75vh; /* Force the stage to respect the 75vh limit */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; 
    overflow: hidden; /* Prevent vertical scrollbars on tall items */
    cursor: grab;
}

.gallery-wrap-cube {
    position: relative;
    transform-style: preserve-3d;
    width: var(--w);
    height: var(--h);
    margin: auto; /* Keep it centered if it's smaller than the stage */
    transform: rotateY(35deg) rotateX(20deg);
    transition: transform 0.1s ease-out;
}

.gallery-wrap-stage {
    opacity: 0;
    animation: fadeInCube 0.5s ease-out forwards;
}

@keyframes fadeInCube {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   FINAL DIMENSION BADGE
   ========================================= */
.final-dimension-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255, 130, 107, 0.12);
    color: #c94e35;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 130, 107, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.final-dimension-badge #final-dimension-text {
    font-weight: 700;
    color: #333;
}

/* =========================================
   DIMENSION SIZE ALERT (Packaging Limit)
   ========================================= */
.dimension-size-alert {
    margin-top: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff8f0, #fff3e6);
    border: 1px solid #f5c6a0;
    border-left: 3px solid #e8884d;
    border-radius: 8px;
    animation: alertSlideIn 0.3s ease-out;
}

.dimension-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #8a5a2b;
}

.dimension-alert-content svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #e8884d;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   DMCA HOLD — GRAYED OUT STATE
   ========================================= */

/* Grayed out product display — disables all interaction */
.product-display.dmca-grayed-out {
    filter: grayscale(100%);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    position: relative;
}

/* =========================================
   ZOOM HINT OVERLAY ON PRODUCT IMAGES
   ========================================= */
.hires-zoomable {
    position: relative;
    cursor: zoom-in;
}

.zoom-hint-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hires-zoomable:hover .zoom-hint-overlay {
    opacity: 1;
    transform: scale(1);
}

/* Hide on touch devices */
@media (hover: none) {
    .zoom-hint-overlay {
        display: none;
    }
}

/* =========================================
   LIGHTBOX MODAL
   ========================================= */
.hires-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height — adjusts for mobile address bar */
    z-index: 99999;
    flex-direction: column;
    background: #000;
}

.hires-lightbox.active {
    display: flex;
}

.hires-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Toolbar */
.hires-lightbox-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(20, 20, 20, 0.9);
    flex-shrink: 0;
}

.hires-lightbox-label {
    margin-right: auto;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.hires-lightbox-toolbar button {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
}

.hires-lightbox-toolbar button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.hires-lightbox-close {
    font-size: 1.5rem !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: 4px;
}

/* Viewport */
.hires-lightbox-viewport {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    cursor: grab;
}

.hires-lightbox-viewport.dragging {
    cursor: grabbing;
}

.hires-lightbox-viewport img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    transform-origin: 0 0;
    transition: none;
    user-select: none;
    -webkit-user-drag: none;
}

.hires-lightbox-viewport img.animating {
    transition: transform 0.25s ease;
}

/* Loading spinner */
.hires-lightbox-viewport::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #ff826b;
    border-radius: 50%;
    animation: hiresSpinner 0.8s linear infinite;
    z-index: 0;
}

.hires-lightbox-viewport.loaded::before {
    display: none;
}

@keyframes hiresSpinner {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .hires-lightbox-label {
        display: none;
    }
    .hires-lightbox-toolbar {
        padding: 8px 12px;
    }
}