/*--------------------------------------------------------------
  Portfolio Shortcodes — Smack Happy Design
  Combined grid, web preview, and lightbox galleries
--------------------------------------------------------------*/

/* Combined Grid */
.shd-combined-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    align-items: center;
}
.shd-combined-grid.shd-cols-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
}
.shd-combined-grid.shd-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.shd-combined-grid.shd-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.shd-combined-grid a {
    display: block;
}
.shd-combined-grid img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Web Preview */
.shd-web-preview {
    position: relative;
    max-height: 600px;
    overflow: hidden;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}
.shd-web-preview a {
    display: block;
}
.shd-web-preview img {
    width: 100%;
    display: block;
    cursor: pointer;
}
.shd-web-preview .shd-web-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    -webkit-transition: all 0.4s linear;
    -moz-transition: all 0.4s linear;
    -ms-transition: all 0.4s linear;
    -o-transition: all 0.4s linear;
    transition: all 0.4s linear;
    pointer-events: none;
}
.shd-web-preview:hover .shd-web-overlay {
    opacity: 1;
}
.shd-web-preview .shd-web-overlay span {
    color: #fff;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/*Portfolio Single*/
.mfp-image-holder .mfp-close {
    width: 54px !important;
    right: -30px !important;
    left: auto !important;
    top: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    cursor: pointer !important;
    opacity: 1 !important;
}
.mfp-image-holder .mfp-close span {
    font-size: 54px;
    width: 54px;
    height: 54px;
    line-height: 54px;
    color: #fff;
    background: #0547e6 !important;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mfp-image-holder .mfp-close:hover span {
    background: #0335b0 !important;
}
@media (max-width: 1200px) {
    .shd-gallery > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
    .shd-combined-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .shd-combined-grid {
        grid-template-columns: 1fr !important;
    }
}