/**
 * @version      4.2
 * @package      Simple Image Gallery (plugin)
 * @author       JoomlaWorks - https://www.joomlaworks.net
 * @copyright    Copyright (c) 2006 - 2022 JoomlaWorks Ltd. All rights reserved.
 * @license      GNU/GPL license: https://www.gnu.org/licenses/gpl.html
 */

/* =========================================================
   Allgemeine Einstellungen
   ========================================================= */

a:active,
a:focus {
    outline: 0;
}

table.contentpaneopen {
    width: 100%;
}

li.sigFreeClear {
    clear: both;
    float: none !important;
    height: 0 !important;
    line-height: 0 !important;
    border: none !important;
    background: none !important;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   Galerie – Masonry
   ========================================================= */

.sigMasonry {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}


/* =========================================================
   Spalten
   ========================================================= */

.sigMasonryColumn {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    flex-direction: column;

    /* Abstand zwischen den Bildern */
    gap: 16px;

    /* Bilder innerhalb der Spalte mittig */
    align-items: center;
    text-align: center;
}


/* =========================================================
   Einzelnes Galerie-Element
   ========================================================= */

.sigMasonryItem {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   Link / Bildrahmen
   ========================================================= */

.sigMasonryItem a.sigFreeLink {
    display: block;
    float: none !important;

    max-width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    background: #fff;

    position: relative;

    /* Dezenter Schatten */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   Thumbnail
   ========================================================= */

/*
 * Wichtig:
 * Simple Image Gallery verwendet ein transparentes GIF
 * und legt das eigentliche Thumbnail als background-image
 * auf das IMG-Element.
 *

.sigMasonryItem img.sigFreeImg {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 100%;

    padding: 0;
    margin: 0;

    border: 0;

    background-repeat: no-repeat;
    background-position: center center;
}
*/

.sigMasonryItem img.sigFreeImg {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border: 0;

    background-repeat: no-repeat;
    background-position: center center;

    /* vollständiges Bild innerhalb des Thumbnail-Bereichs */
    //background-size: contain;
    background-size: 100% 100%;
    background-color: #fff;
}

/* =========================================================
   Hover-Effekt
   ========================================================= */

.sigMasonryItem a.sigFreeLink:hover img.sigFreeImg {
    opacity: 0.7;
}


/* =========================================================
   Lupen-Symbol
   ========================================================= */

.sigMasonryItem a.sigFreeLink:hover:after {
    position: absolute;

    top: 50%;
    left: 50%;

    margin: -24px 0 0 -24px;

    display: block;

    content: "";

    width: 48px;
    height: 48px;

    background: transparent
        url(../images/magnify_48x48_24.png)
        no-repeat;
}


/* =========================================================
   Druckausgabe
   ========================================================= */

.sigFreePrintOutput {
    display: none;
}

@media print {

    .sigFreeContainer {
        display: none;
    }

    .sigFreePrintOutput {
        display: block;
        color: #fff;
        font-size: 14px;
        padding: 8px 0;
    }

    .sigFreePrintOutput img {
        width: 33%;
        height: auto;
        vertical-align: top;
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 700px) {

    .sigMasonry {
        gap: 10px;
    }

    .sigMasonryColumn {
        gap: 10px;
    }
}

@media (max-width: 900px) {

    .sigMasonry {
        gap: 12px;
    }

    .sigMasonryColumn {
        gap: 12px;
    }

    .sigMasonryItem {
        display: flex;
        justify-content: center;
    }

    .sigMasonryItem a.sigFreeLink {
        max-width: 100%;
    }
}

/* =========================================================
   Smartphone
   ========================================================= */

@media (max-width: 480px) {

    .sigMasonry {
        display: block;
    }

    .sigMasonryColumn {
        display: block;
    }

    .sigMasonryItem {
        width: 100%;
        margin-bottom: 10px;
    }

    .sigMasonryItem a.sigFreeLink {
        margin-left: auto;
        margin-right: auto;
    }
}

.sigMasonryItem {
    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {

    .sigMasonry {
        display: block;
    }

    .sigMasonryColumn {
        display: block;
    }

    .sigMasonryItem {
        width: 100%;
        margin-bottom: 12px;
        display: flex;
        justify-content: center;
    }

    .sigMasonryItem a.sigFreeLink {
        max-width: 100%;
    }
}

/* =========================================================
   Galerie – weißen Rand entfernen, Schatten behalten
   ========================================================= */

.sigMasonryItem a.sigFreeLink {
    background-color: transparent !important;
    padding: 0 !important;
}

.sigMasonryItem img.sigFreeImg {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}


