/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

html.no-grayscale {
    /* IE */
    filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0);
    /* Chrome, Safari */
    -webkit-filter: grayscale(0);
    /* Firefox */
    filter: grayscale(0);
    filter: grayscale(0%);
    filter: gray;
    -moz-filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
}

/* Ribbon มุมขวาบน - ติดตามการเลื่อน */
.black-ribbon-top-right {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 100px;
    pointer-events: none; /* ให้เลื่อน scroll ผ่านได้ */
}

.black-ribbon-top-right img {
    width: 100%;
    height: auto;
    display: block;
}

.admin-bar .black-ribbon-top-right {
    top: 32px;
}

.black-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 132px;
    z-index: 99999;
}

.admin-bar .black-ribbon {
    top: 32px;
}

/* Toggle Button - ปุ่มสลับโหมดสีเทา */
.grayscale-toggle-btn {
    position: fixed;
    bottom: 40px;
    left: 10px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.grayscale-toggle-btn:hover {
    background-color: #555;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.grayscale-toggle-btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.grayscale-toggle-btn svg.active {
    opacity: 1;
    transform: scale(1);
}

.admin-bar .grayscale-toggle-btn {
    bottom: 20px;
}

.remove-filter {
    display: none;
}

.btn-remove-filter {
    display: none;
}

 /* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {

}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {

}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    .black-ribbon {
        width: 96px;
    }
    .black-ribbon-top-right {
        width: 80px;
    }
}

/* Extra Small Devices, Phones */ 
@media only screen and (max-width : 480px) {
    .black-ribbon {
        width: 64px;
    }
    .black-ribbon-top-right {
        width: 60px;
    }
    .admin-bar .black-ribbon {
        top: 46px;
    }
    .admin-bar .black-ribbon-top-right {
        top: 46px;
    }
    .admin-bar .remove-filter {
        top: 46px;
    }
}

/* Custom, iPhone Retina */ 
@media only screen and (max-width : 320px) {
    .black-ribbon {
        width: 64px;
    }
    .black-ribbon-top-right {
        width: 50px;
    }
    .admin-bar .black-ribbon {
        top: 46px;
    }
    .admin-bar .black-ribbon-top-right {
        top: 46px;
    }
    .admin-bar .remove-filter {
        top: 46px;
    }
}