/*
 * Copyright 2021 LABOR.digital
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Last modified: 2021.02.01 at 10:02
 */

@keyframes spinnerAnimation {
	100% {
		transform: rotate(360deg);
	}
}

.newsGrid {
	overflow: hidden;
	width: 100%;
}

.newsGrid__event {
	height: 30px;
}

.newsGrid__calendar {
	overflow-x: hidden;
}

.newsGrid__calendar .tui-full-calendar-layout {
	overflow-x: scroll;
	overflow-y: hidden;
}

.newsGrid__calendar .tui-full-calendar-month {
	min-width: 600px;
}

.newsGrid__calendar .tui-full-calendar-schedule-title {
	display: block;
	font-size: 15px;
	line-height: 18px;
	word-break: break-word;
	margin-bottom: 10px;
}

.newsGrid__calendar .tui-full-calendar-content {
	display: block;
	font-size: 12px;
	line-height: 14px;
	height: 100%;
}

.newsGrid__calendar .tui-full-calendar-popup-detail-date span {
	display: block;
	color: #5176ff;
}

.newsGrid__calendar .tui-full-calendar-content a {
	display: block;
	margin-top: 10px;
}

.newsGrid__control {
	display: flex;
	justify-content: space-between;
}

.newsGrid__calendar #currentMonth {
	font-family: 'Montserrat', sans-serif;
	font-size: 30px;
	color: #000000 !important;
	text-align: left;
	line-height: 49px;
}

.newsGrid__buttons button {
	font-size: 16px;
	border-color: #000000;
	background-color: transparent;
	border-radius: 50px;
	font-weight: bold;
	font-style: normal;
	text-transform: none;
	text-decoration: none;
	color: #000000;
	padding: 13px 45px;
	margin-bottom: 30px;
	margin-right: 15px;
}

.newsGrid__buttons button:hover {
	color: #ffffff;
	background-color: #000000;
}

.newsGrid__buttons--position {
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: flex-end;
	margin-bottom: -100px;
	margin-top: 30px;
}

@media screen and (max-width: 600px) {
	.newsGrid__buttons button {
		font-size: 14px;
		padding: 5px 15px;
		margin-right: 10px;
	}
	
	.newsGrid__buttons--position {
		position: inherit
	}
	
	.newsGrid__buttons #currentMonth {
		font-size: 20px;
		line-height: 32px;
	}
	
	.newsGrid__control {
		flex-direction: column-reverse;
		justify-content: left;
	}
}


@media screen and (max-width: 480px) {
	.newsGrid__calendar .tui-full-calendar-layout {
		margin: 0 -30px;
	}
}

.newsGrid__container {
	position: relative;
	padding: 100px 0;
}

.newsGrid__container:nth-child(even) {
	background-color: #F2F2F2;
	margin: 0 -500%;
	padding: 100px 500% !important;
}

.newsGrid__container:first-child {
	padding-top: 0;
}

.newsGrid__masonry {
	width: 100%;
	position: relative;
}

@media screen and (max-width: 500px) {
	.newsGrid__masonry {
		min-width: 100% !important;
	}
	
	.newsGrid__article {
		width: 100% !important;
		padding-bottom: 15px;
	}
}

.newsGrid__article {
	position: absolute;
	overflow: hidden;
}

.newsGrid__image {
	display: block;
	margin-bottom: 20px;
}

.newsGrid__headline {
	display: block;
	margin-bottom: 20px;
	font-family: Montserrat, serif;
	font-weight: bold;
	font-size: 32px;
	line-height: 32px;
	color: #000;
}

.newsGrid__metas {
	display: flex;
	gap: .5em;
	flex-wrap: wrap;
}

.newsGrid__loadBtn,
.newsGrid__text,
.newsGrid__meta,
.newsGrid__more,
.newsGrid__meta a {
	display: block;
	font-family: Montserrat, serif;
	font-weight: 300;
	font-size: 18px;
	line-height: 1.67em;
}

.newsGrid__text {
	margin: 30px 0;
	color: #000;
}

.newsGrid__more {
	color: #000;
}

.newsGrid__more,
.newsGrid__meta a {
	font-weight: bold;
}

.newsGrid__load {
	width: 100%;
	display: flex;
	padding-top: 50px;
}

.newsGrid__loadBtn {
	display: flex;
	cursor: pointer;
	color: #000;
	font-weight: bold;
	border: solid 2px #000;
	border-radius: 50px;
	padding: 13px 45px;
	line-height: 1em;
	margin: 0 auto;
	transition: all 300ms ease 0ms;
}

.newsGrid__loadBtn:hover {
	background-color: #000000;
	color: #ffffff;
}

.newsGrid__loadBtn[disabled="disabled"] {
	cursor: default;
	pointer-events: none;
	border: solid 2px #9e9e9e;
	color: #9e9e9e;
}


.newsGrid__spinnerContainer {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 10px;
}

.newsGrid__spinner {
	width: 18px;
	height: 18px;
	border: 4px #ddd solid;
	border-top: 4px #5176FF solid;
	border-radius: 50%;
	animation: spinnerAnimation 0.8s infinite linear;
}

.newsGrid__month {
	font-family: Montserrat, serif;
	font-style: normal;
	font-weight: bold;
	font-size: 48px;
	line-height: 58px;
	margin-top: 30px;
	margin-bottom: 30px;
	color: #000;
}
