/*
 * Photo Gallery Plugin v2.9.4
 * Shortcode gallery detail button layer.
 * Deliberately isolated from taxonomy/category button styles.
 */
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-card-content{
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:100%!important;
}

/* Existing card variations own title padding/background. Keep that visual language,
   but give the button its own predictable card area. */
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-card-action{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    width:100%!important;
    margin:0!important;
    padding:0 16px 16px!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-minimal .pgp-shortcode-card-action{
    padding:12px 0 0!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-shadow .pgp-shortcode-card-action{
    padding:0 8px 14px!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-editorial .pgp-shortcode-card-content{
    min-width:0!important;
    background:#fff!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-editorial .pgp-shortcode-card-action{
    padding:0 22px 20px!important;
}

.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-align-left .pgp-shortcode-card-action{justify-content:flex-start!important}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-align-center .pgp-shortcode-card-action{justify-content:center!important}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-align-right .pgp-shortcode-card-action{justify-content:flex-end!important}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-width-full .pgp-shortcode-detail-button{width:100%!important}

.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-detail-button{
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-height:36px!important;
    margin:0!important;
    padding:var(--pgp-sc-btn-py,9px) var(--pgp-sc-btn-px,14px)!important;
    border-radius:var(--pgp-sc-btn-radius,8px)!important;
    font-family:inherit!important;
    font-size:var(--pgp-sc-btn-size,13px)!important;
    font-weight:var(--pgp-sc-btn-weight,700)!important;
    line-height:1.2!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    cursor:pointer!important;
    transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-detail-button:hover,
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-detail-button:focus{
    transform:translateY(-1px)!important;
    text-decoration:none!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-detail-button:focus-visible{
    outline:3px solid rgba(22,90,143,.22)!important;
    outline-offset:2px!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-detail-button-icon{
    display:inline-block!important;
    font-size:1.12em!important;
    line-height:1!important;
    transition:transform .2s ease!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons .pgp-shortcode-detail-button:hover .pgp-shortcode-detail-button-icon{
    transform:translateX(2px)!important;
}

/* Dolu */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-filled .pgp-shortcode-detail-button{
    border:1px solid var(--pgp-sc-btn-bg,#165a8f)!important;
    background:var(--pgp-sc-btn-bg,#165a8f)!important;
    color:var(--pgp-sc-btn-color,#fff)!important;
    box-shadow:0 6px 16px rgba(15,76,120,.16)!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-filled .pgp-shortcode-detail-button:hover{
    border-color:var(--pgp-sc-btn-hover,#0f466f)!important;
    background:var(--pgp-sc-btn-hover,#0f466f)!important;
    color:var(--pgp-sc-btn-color,#fff)!important;
}

/* Çerçeveli */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-outline .pgp-shortcode-detail-button{
    border:1.5px solid var(--pgp-sc-btn-bg,#165a8f)!important;
    background:transparent!important;
    color:var(--pgp-sc-btn-bg,#165a8f)!important;
    box-shadow:none!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-outline .pgp-shortcode-detail-button:hover{
    background:var(--pgp-sc-btn-bg,#165a8f)!important;
    color:var(--pgp-sc-btn-color,#fff)!important;
}

/* Yumuşak */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-soft .pgp-shortcode-detail-button{
    border:1px solid color-mix(in srgb,var(--pgp-sc-btn-bg,#165a8f) 18%,transparent)!important;
    background:color-mix(in srgb,var(--pgp-sc-btn-bg,#165a8f) 10%,#fff)!important;
    color:var(--pgp-sc-btn-bg,#165a8f)!important;
    box-shadow:none!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-soft .pgp-shortcode-detail-button:hover{
    background:color-mix(in srgb,var(--pgp-sc-btn-bg,#165a8f) 16%,#fff)!important;
    color:var(--pgp-sc-btn-hover,#0f466f)!important;
}

/* Metin */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-text .pgp-shortcode-detail-button{
    min-height:auto!important;
    padding:2px 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--pgp-sc-btn-bg,#165a8f)!important;
    box-shadow:none!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-text .pgp-shortcode-detail-button:hover{
    background:transparent!important;
    color:var(--pgp-sc-btn-hover,#0f466f)!important;
    text-decoration:underline!important;
    text-underline-offset:3px!important;
}

/* Koyu */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-dark .pgp-shortcode-detail-button{
    border:1px solid #172033!important;
    background:#172033!important;
    color:#fff!important;
    box-shadow:0 6px 16px rgba(15,23,42,.16)!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-style-dark .pgp-shortcode-detail-button:hover{
    border-color:#0b1220!important;
    background:#0b1220!important;
    color:#fff!important;
}

/* Overlay kartlarda başlık ve buton görselin üzerinde iki ayrı katmanda kalır. */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay .pgp-grid > article.pgp-card--overlay{
    overflow:hidden!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay .pgp-shortcode-card-content{
    position:static!important;
    display:block!important;
    width:auto!important;
    background:transparent!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay .pgp-shortcode-card-content > .pgp-title{
    bottom:68px!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay .pgp-shortcode-card-action{
    position:absolute!important;
    z-index:4!important;
    left:18px!important;
    right:18px!important;
    bottom:16px!important;
    width:auto!important;
    padding:0!important;
    background:transparent!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay.pgp-sc-btn-align-left .pgp-shortcode-card-action{justify-content:flex-start!important}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay.pgp-sc-btn-align-center .pgp-shortcode-card-action{justify-content:center!important}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-overlay.pgp-sc-btn-align-right .pgp-shortcode-card-action{justify-content:flex-end!important}

/* Inline seçeneği: title + button aynı kontrollü içerik satırında. Overlay hariç. */
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-position-inline:not(.pgp-card-style-overlay) .pgp-shortcode-card-content{
    flex-direction:row!important;
    align-items:center!important;
    gap:12px!important;
    padding:14px 16px!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-position-inline:not(.pgp-card-style-overlay) .pgp-shortcode-card-content > .pgp-title{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
}
.pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-position-inline:not(.pgp-card-style-overlay) .pgp-shortcode-card-action{
    flex:0 0 auto!important;
    width:auto!important;
    padding:0!important;
}

@media(max-width:640px){
    .pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-position-inline .pgp-shortcode-card-content{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .pgp-gallery-wrap.pgp-shortcode-buttons.pgp-sc-btn-position-inline .pgp-shortcode-card-action{
        width:100%!important;
    }
    .pgp-gallery-wrap.pgp-shortcode-buttons.pgp-card-style-editorial .pgp-shortcode-card-action{
        padding:0 16px 16px!important;
    }
}
