.aigpl-clearfix:before, .aigpl-clearfix:after{content: "";display: table;}
.aigpl-clearfix::after{clear: both;}
.aigpl-hide{display:none;}
.aigpl-center{text-align:center;}
.aigpl-gallery-wrp *, .aigpl-gallery-album-wrp *{box-sizing: border-box; outline:none !important;}
.aigpl-gallery-wrp .aigpl-inr-wrp{position:relative; overflow: hidden;}
.aigpl-gallery-wrp .aigpl-img, .aigpl-gallery-album-wrp .aigpl-img{border-radius:0 !important; box-shadow:none !important; border:0; margin:0; padding:0; object-fit:cover; object-position:top center; height:100%; width:100%;}
.aigpl-img-title{font-weight:bold; padding: 8px 0 0 0;}
.aigpl-img-desc{padding: 8px 0 0 0;}
.aigpl-gallery-wrp .aigpl-img-wrp {line-height: 0;}
/* Custom Lightbox — LTR + resets so theme/RTL cannot merge or flip controls */
.aigpl-lb-overlay{display:none; position:fixed; inset:0; width:100%; height:100%; background:rgba(10,10,12,0.88); backdrop-filter:saturate(1.2) blur(8px); -webkit-backdrop-filter:saturate(1.2) blur(8px); z-index:99999; box-sizing:border-box; overflow:auto; -webkit-overflow-scrolling:touch; direction:ltr !important; text-align:left !important; unicode-bidi:isolate;}
.aigpl-lb-overlay.aigpl-lb-active{display:block;}
.aigpl-lb-overlay *{box-sizing:border-box;}

/* Center card */
.aigpl-lb-shell{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(1320px, calc(100vw - 100px)); max-height:calc(100vh - 28px); z-index:1;}

/* Close — ekranın (viewport) sağ üst köşesi; modalın dışında, fixed */
.aigpl-lb-overlay button.aigpl-lb-close{position:fixed !important; top:max(14px, env(safe-area-inset-top, 0px)) !important; right:max(14px, env(safe-area-inset-right, 0px)) !important; left:auto !important; bottom:auto !important; inset-inline-start:auto !important; inset-inline-end:max(14px, env(safe-area-inset-right, 0px)) !important; z-index:100003 !important; width:48px; height:48px; margin:0 !important; padding:0 !important; float:none !important; border:none; border-radius:50%; cursor:pointer; display:flex !important; align-items:center; justify-content:center; color:#fff; background:rgba(255,255,255,0.14); box-shadow:0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.22); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); transition:background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; -webkit-appearance:none; appearance:none;}
.aigpl-lb-overlay button.aigpl-lb-close:hover{background:rgba(255,255,255,0.26); transform:scale(1.06); box-shadow:0 6px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.28);}
.aigpl-lb-overlay button.aigpl-lb-close:focus-visible{outline:2px solid rgba(255,255,255,0.65); outline-offset:3px;}
.aigpl-lb-overlay button.aigpl-lb-close .aigpl-lb-icon{display:block;}

.aigpl-lb-container{position:relative; display:flex; align-items:center; width:100%; max-width:100%; max-height:calc(100vh - 28px); min-height:0; background:#1a1a1a; border-radius:12px; overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);}

/* Prev / Next — viewport sol/sağ, dikey tam orta (fixed + !important) */
.aigpl-lb-overlay button.aigpl-lb-arrow{position:fixed !important; top:50% !important; margin:0 !important; float:none !important; width:56px; height:56px; min-width:56px; min-height:56px; padding:0 !important; border:none; border-radius:50%; cursor:pointer; display:flex !important; align-items:center; justify-content:center; color:#fff; background:rgba(255,255,255,0.1); box-shadow:0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); z-index:100002 !important; transform:translateY(-50%) !important; transition:background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; -webkit-appearance:none; appearance:none;}
.aigpl-lb-overlay button.aigpl-lb-arrow:hover{background:rgba(255,255,255,0.2); transform:translateY(-50%) scale(1.08) !important; box-shadow:0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);}
.aigpl-lb-overlay button.aigpl-lb-arrow:focus-visible{outline:2px solid rgba(255,255,255,0.5); outline-offset:3px;}
.aigpl-lb-overlay button.aigpl-lb-arrow:disabled{opacity:0.22; cursor:default; pointer-events:none; transform:translateY(-50%) !important;}
.aigpl-lb-overlay button.aigpl-lb-arrow .aigpl-lb-icon{display:block; flex-shrink:0;}
.aigpl-lb-prev{left:max(20px, env(safe-area-inset-left, 0px)) !important; right:auto !important;}
.aigpl-lb-next{right:max(20px, env(safe-area-inset-right, 0px)) !important; left:auto !important;}

/* Görsel: sütun genişliğini doldurur; yükseklik orana göre — kutu gereksiz büyümez */
.aigpl-lb-image-wrap{flex:3 1 0; min-width:0; display:block; background:#000; overflow:hidden;}
.aigpl-lb-img{display:block; width:100%; height:auto; max-height:min(78vh, calc(100vh - 48px)); object-fit:contain; object-position:center; cursor:pointer;}

/* Info panel */
.aigpl-lb-info{flex:0 0 auto; width:clamp(220px, 26%, 300px); max-width:300px; min-width:220px; background:#222; color:#e0e0e0; padding:24px 20px; max-height:min(78vh, calc(100vh - 48px)); overflow-y:auto;}
.aigpl-lb-title{font-size:20px; font-weight:600; margin:0 0 14px 0; color:#fff; line-height:1.3;}
.aigpl-lb-desc{font-size:15px; line-height:1.6; color:#ccc; margin:0 0 18px 0;}
.aigpl-lb-counter{margin-top:20px; font-size:13px; color:#888;}

/* Price Toggle */
.aigpl-price-trigger{display:inline-block; cursor:pointer; color:#4ea6e6; font-size:14px; font-weight:500; padding:4px 0; user-select:none;}
.aigpl-price-trigger:hover{text-decoration:underline;}
.aigpl-price-content{margin:8px 0 0; font-size:18px; font-weight:600; color:#ffd700;}
.aigpl-gallery-price{margin:16px 0; padding:12px 0; border-top:1px solid #e0e0e0;}
.aigpl-gallery-price .aigpl-price-trigger{color:#0073aa; font-size:15px;}
.aigpl-gallery-price .aigpl-price-content{color:#333;}

/* Mobile: stack vertically */
@media only screen and (max-width: 768px) {
	.aigpl-lb-shell{width:calc(100vw - 24px); max-height:calc(100vh - 20px); top:50%; transform:translate(-50%,-50%);}
	.aigpl-lb-container{flex-direction:column; max-height:calc(100vh - 20px); border-radius:10px;}
	.aigpl-lb-image-wrap{flex:1 1 auto; max-width:100%; min-height:0;}
	.aigpl-lb-img{max-height:min(58vh, 520px);}
	.aigpl-lb-info{flex:0 1 auto; width:100%; max-width:none; min-width:0; max-height:38vh; padding:18px 16px;}
	.aigpl-lb-overlay button.aigpl-lb-arrow{width:48px; height:48px; min-width:48px; min-height:48px;}
	.aigpl-lb-prev{left:max(10px, env(safe-area-inset-left, 0px)) !important;}
	.aigpl-lb-next{right:max(10px, env(safe-area-inset-right, 0px)) !important;}
	.aigpl-lb-overlay button.aigpl-lb-close{top:max(10px, env(safe-area-inset-top, 0px)) !important; right:max(10px, env(safe-area-inset-right, 0px)) !important; width:44px; height:44px;}
}
.aigpl-cnt-wrp .aigpl-img-desc p:last-child{margin-bottom: 0;}
.aigpl-cnt-wrp .aigpl-img-desc p {margin-bottom: 8px;}

.aigpl-gallery-album-wrp .aigpl-img-wrp{border:1px solid #ccc; padding: 5px; z-index: 1;}
.aigpl-gallery-album-wrp .aigpl-img-wrp::after { border-width: 4px !important; bottom: -7px; content: " "; left: -7px; position: absolute; right: 11px; top: 5px; border-style: none none double double !important; border-color: #ccc; z-index: -1;}
.aigpl-img-count {font-style: italic; padding: 6px 0 0 0;}
.aigpl-album-year{font-weight:400; font-size:0.85em; color:#666;}
.aigpl-album-single-desc,.aigpl-album-desc-rich{margin:10px 0 22px; line-height:1.65; max-width:100%; text-align:left;}
.aigpl-album-single-desc p,.aigpl-album-desc-rich p{margin:0 0 0.75em;}
.aigpl-album-single-desc p:last-child,.aigpl-album-desc-rich p:last-child{margin-bottom:0;}
.aigpl-album-single-desc ul,.aigpl-album-single-desc ol,.aigpl-album-desc-rich ul,.aigpl-album-desc-rich ol{margin:0.5em 0 0.75em 1.25em; padding:0;}
.aigpl-album-single-desc li,.aigpl-album-desc-rich li{margin:0.25em 0;}
.aigpl-album-single-desc h1,.aigpl-album-single-desc h2,.aigpl-album-single-desc h3,.aigpl-album-desc-rich h1,.aigpl-album-desc-rich h2,.aigpl-album-desc-rich h3{margin:0.75em 0 0.4em; line-height:1.25;}
.aigpl-center.aigpl-album-desc-rich{text-align:left;}

/* Slider CSS Starts */
.aigpl-gallery-slider{visibility: hidden; opacity:0; transition:opacity 0.5s linear;}
.aigpl-gallery-slider.slick-initialized {visibility: visible; opacity:1;}
.aigpl-gallery-slider .slick-dots li button{text-indent:-99999px;}

.aigpl-gallery-slider .slick-arrow{position:absolute; top: 40%; z-index:9; padding:0; margin:0px; display: inline-block; background-color: rgba(0, 0, 0, 0.7); text-align:center; width:30px; height:50px; cursor: pointer;}
.aigpl-gallery-slider .slick-arrow svg{fill: #fff; height: 100%; width: 100%;}
.aigpl-gallery-slider .slick-next{right:5px;}
.aigpl-gallery-slider .slick-prev{left:5px;}

.aigpl-gallery-album-slider.aigpl-gallery-slider .slick-prev{left:16px;}
.aigpl-gallery-album-slider.aigpl-gallery-slider .slick-next{right:16px;}

.aigpl-gallery-slider .slick-dots{padding:15px 0 !important; margin:0 !important; text-align:center; line-height:0;}
.aigpl-gallery-slider .slick-dots li{list-style:none !important; display:inline-block !important; margin:0 3px !important; padding:0px !important;line-height: 0;}
.aigpl-gallery-slider ul.slick-dots li::before, .aigpl-gallery-slider ul.slick-dots li::after{background:none !important;content:none !important;}
.aigpl-gallery-slider .slick-dots li button{background: #fff !important;margin: 0px !important;padding: 0px !important;border: 2px solid #444;border-radius: 50% !important;width: 12px !important; height: 12px !important; box-shadow: none !important;}
.aigpl-gallery-slider .slick-dots li button:focus{outline:none !important;}
.aigpl-gallery-slider .slick-dots li.slick-active button{background:#8D8C8C !important;}
.aigpl-gallery-slider .slick-slide{padding:0 5px !important; text-align:center;}
.aigpl-gallery-album-slider.aigpl-gallery-slider .slick-slide{padding:0 10px 10px 10px !important; text-align:center;}
/* Slider CSS Ends */

/* Avada CSS */
.fusion-flex-container.aigpl-fusion-flex{ flex-direction: column; }
.aigpl-elementor-tab-wrap{min-width: 0; min-height: 0;}

/********************** ALBUM DESIGN-1 ***********************/
.aigpl-album-design-1 .aigpl-first{ clear: both; }
.aigpl-album-design-1 .aigpl-img-title{font-weight: 600;text-transform: capitalize;font-size: 18px;line-height: normal;margin: 15px 0 0; padding: 0;}
.aigpl-album-design-1 .aigpl-img-desc{padding: 8px 0 0 0;}
.aigpl-album-design-1 .aigpl-img-wrp{position: relative;height: 300px;width: 100%;}
.aigpl-album-design-1 .aigpl-img-count{padding-top:8px;}

/********************** GALLERY DESIGN-1 ***********************/
.aigpl-design-1 .aigpl-hide{display:none;}
.aigpl-design-1 .aigpl-gallery-wrp *{box-sizing: border-box; outline:none !important;}
.aigpl-design-1 .aigpl-gallery-wrp .aigpl-inr-wrp{position:relative;}
.aigpl-design-1 .aigpl-gallery-wrp .aigpl-img-wrp{line-height:0; height: 225px; position:relative;}
.aigpl-design-1 .aigpl-gallery-wrp .aigpl-img{border-radius:0 !important; box-shadow:none !important; border:0; margin:0; padding:0; -o-object-fit:cover; object-fit:cover; -o-object-position:top center; object-position:top center; height:100%; width:100%;}

.aigpl-design-1.aigpl-gallery-wrp .aigpl-first{clear:both;}
.aigpl-design-1 .aigpl-img-caption {z-index: 1000;box-sizing: border-box;  bottom: 0; color: #fff; font-size: 16px; padding: 15px 10px; position: absolute; text-align: center; width: 100%; line-height:normal;background: RGBA(17, 17, 17, 0.62);}
.aigpl-design-1 .aigpl-img-title{font-weight: 600;text-transform: capitalize;font-size: 18px;line-height: normal;margin: 8px 0 0;}
.aigpl-design-1 .aigpl-img-desc{padding: 8px 0 0 0;}
.aigpl-design-1 .aigpl-img-wrp{position: relative;height: 300px;width: 100%;}

.aigpl-column,
.aigpl-columns {width: 100%; position: relative; padding:10px; float:left;}

@media only screen and (min-width: 40.0625em) {  
    .aigpl-column,
    .aigpl-columns {position: relative; padding: 10px; float:left;}
    .aigpl-col-1{ width: 100%; }
    .aigpl-col-2{ width: 50%; }
    .aigpl-col-3{ width: 33.33333%; }
    .aigpl-col-4{ width: 25%; }
    .aigpl-col-5{ width:20%; }
    .aigpl-col-6{ width: 16.66667%; }
    .aigpl-col-7{ width: 14.2857%; }
    .aigpl-col-8{ width: 12.5%; }
    .aigpl-col-9{ width: 11.11%; }
    .aigpl-col-10{ width: 10%; }
    .aigpl-col-11{ width: 9.090%; }
    .aigpl-col-12{ width: 8.33333%; }
}