.drag-gallery-section {
    padding: 100px 0px;
    position: relative;
}
.drag-gallery-section > .container,
.drag-gallery-section > .grid-container,
.drag-gallery-section > .progress {
  position: relative;
  z-index: 2;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "header header header""title title footer""main main main";
    padding-top: 40px;
    margin-left: 40px;
    margin-right: 40px;
}

.grid-container, .grid-items, .grid-item {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.grid-container::-webkit-scrollbar, .grab-items::-webkit-scrollbar, .grid-item::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.grid-item {
    color: #fff;
    padding: 3.5em 1em;
    font-size: 1em;
    font-weight: 700;
}

.main {
    color: #959595;
    background-color: white;
    grid-area: main;
    padding: 0;
    overflow-x: scroll;
    overflow-y: hidden;
}

.grab-items {
    position: relative;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    user-select: none;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    text-align: center;
}

.grab-items.active {
    background: rgba(255, 255, 255, 0.3);
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.grab-item {
    display: inline-block;
    height: 600px;
    width: 700px;
    margin-right: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: left;
}

.grab-item:last-of-type {
    margin-right: 0;
}

.grab-item h2, .grab-item h3, .grab-item h4, .grab-item p, .grab-item a {
    color: #fff;
}

.grab-item p {
    font-weight: 300;
}

.grab-item a:hover {
    text-decoration: underline;
}

.buttons {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.single {
    /*padding: 40px;*/
    border-radius: 20px;
}

.single, .double, .triple {
    position: relative;
}

.double-box, .small-box, .full-box {
    position: absolute;
    overflow: hidden;
}
.double-box .content,
.small-box .content,
.full-box .content {
  position: absolute;
  z-index: 2;
  white-space: normal;
  display: table;
}
.double-box .item-bg,
.small-box .item-bg,
.full-box .item-bg {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.double-box .item-bg > img,
.small-box .item-bg > img,
.full-box .item-bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.single .full-box {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
}
.single .full-box > .content {
  height: calc(100% - 40px);
  width: calc(100% - 80px);
}

.double .double-box {
    width: 100%;
    height: calc(50% - 10px);
    border-radius: 20px;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.double .double-box > .content {
  height: calc(100% - 40px);
  width: calc(100% - 80px);
}

.double .double-box:last-of-type {
    top: calc(50% + 10px);
}

.triple .double-box {
    width: 100%;
    height: calc(50% - 10px);
    border-radius: 20px;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.triple .double-box > .content {
  height: calc(100% - 40px);
  width: calc(100% - 80px);
}

.triple .small-box {
    top: calc(50% + 10px);
    width: calc(50% - 10px);
    height: calc(50% - 10px);
    border-radius: 20px;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.triple .small-box > .content {
  height: calc(100% - 40px);
  width: calc(100% - 80px);
}

.triple .small-box:last-of-type {
    top: calc(50% + 10px);
    left: calc(50% + 10px);
    width: calc(50% - 10px);
    height: calc(50% - 10px);
    border-radius: 20px;
    padding: 40px;
}

.progress {
    position: relative;
    height: 6px;
    background: #C3C8D5;
    z-index: 1;
    width: 500px;
    margin: auto;
    margin-top: 60px;
}
.progress .bar {
    height: 100%;
    width: 10%;
    background: #3F5FFF;
    transition: background 0.15s ease;
}


/* bg image */
.drag-gallery-section .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.drag-gallery-section .bg-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.arrow-left, .arrow-right { 
    cursor: pointer;
}

.arrow-left {
    position: absolute;
    left: 5px;
    top: calc(50% - 20px);
    transform: rotate(180deg);
    z-index: 10;
}

.arrow-right {
    position: absolute;
    right: 5px;
    top: calc(50% - 20px);
    z-index: 10;
}

@media (max-width: 1500px) {
    .grab-item {
        height: 33vw;
        min-height: 400px;
        width: 45%;
        min-width: 500px;
    }
}

@media (min-width: 768px) and (max-width: 1499px) {
    .grab-item p {
        font-weight: 300;
        font-size: 1vw;
        line-height: 1.6;
        margin-bottom: 0;
    }
    .triple .small-box {
        top: calc(50% + 10px);
        width: calc(50% - 10px);
        height: calc(50% - 10px);
        border-radius: 20px;
        padding: 20px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .triple .small-box > .content {
        height: calc(100% - 40px);
        width: calc(100% - 40px);
    }
    .triple .double-box {
        padding: 20px;
    }
    .triple .double-box > .content {
        height: calc(100% - 40px);
        width: calc(100% - 40px);
    }
    .triple .small-box:last-of-type {
        padding: 20px;
    }
    .single .full-box {
        padding: 20px;
    }
    .single .full-box > .content {
        height: calc(100% - 40px);
        width: calc(100% - 40px);
    }
    .double .double-box {
        padding: 20px;
    }
    .double .double-box > .content {
        height: calc(100% - 40px);
        width: calc(100% - 40px);
    }
}

@media (min-width: 768px) and (max-width: 885px) {
    .grab-item p {
        font-size: 13px;
    }
}

@media (min-width: 886px) and (max-width: 1045px) {
    .grab-item p {
        font-size: 13px;
    }
}

@media (min-width: 1046px) and (max-width: 1499px) {
    .grab-item p {
        font-size: 1.1vw;
    }
}

@media (max-width: 767px) {
    .grab-item {
        height: 100vw;
        min-height: 300px;
        width: 100%;
        min-width: 300px;
    }
    .grid-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .grab-items {
        scroll-behavior: smooth;
    }

    .progress {
        width: 90%;
    }

    .drag-gallery-section {
        padding: 60px 0px;
        position: relative;
    }
    .progress {
        margin-top: 20px;
    }
    .grid-container {
        padding-top: 10px;
    }
}

@media screen and (max-width: 600px) {
    .grab-item {
        min-height: 200px;
        min-width: 200px;
    }
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: 0.3fr 1fr auto 1fr;
        grid-template-areas: "header""title""main""footer";
    }

    .double .double-box {
        padding: 7%;
        height: 46.5%;
    }

    .double .double-box > .content {
        height: calc(100% - 25%);
        width: 85%;
    }

    .grab-item h4 {
        font-size: 4vw;
        line-height: 1;
    }

    .grab-item p {
        font-size: 2.8vw;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .single .full-box {
        padding: 7%;
    }

    .single .full-box > .content {
        height: 85%;
        width: 85%;
    }

    .triple .double-box {
        height: 46.5%;
        padding: 7%;
    }

    .double .double-box:last-of-type {
        top: 52.5%;
    }

    .triple .double-box > .content {
        height: 75%;
        width: 86%;
    }

    .triple .small-box {
        top: 52.5%;
        width: 46.5%;
        height: 46.5%;
        border-radius: 20px;
        padding: 7%;
    }

    .triple .small-box > .content {
        height: 75%;
        width: 75%;
    }

    .triple .small-box:last-of-type {
        top: 52.5%;
        left: 52.5%;
        width: 46.5%;
        height: 46.5%;
        border-radius: 20px;
        padding: 7%;
    }
}

@media (min-width: 768px) {
    .arrow-left, .arrow-right  {
        display: none;
    }
}





