.galleries-list {
	width: 100%;
	display: flex;
	position: relative;
	align-items: start;
	justify-content: center;
	flex-wrap: wrap;
	flex-direction: column;
	padding: 20px 0;
}

.galleries-list__count {
	color: lightslategray;
	font-size: 20px;
	padding: 0 20px;
}

.galleries-list__wrapper--is-expanded .galleries-list__card{
	display: none !important;
}

.galleries-list__card:first-child,
.galleries-list__card:nth-child(2){
	display: flex !important;
}

.galleries-list__header-with-link {
	display: flex;
	flex-direction: column-reverse;
	gap: 16px;
}

@media screen and (min-width: 1025px) {
	.galleries-list__header-with-link {
		flex-direction: row;
		width: 100%;
		justify-content: space-between;
	}
}

.galleries-list__header-link {
	padding: 5px 25px !important;
    border-radius: 100px !important;
    border: 2px solid #203B4E !important;
    background-color: white!important;
    color: #203B4E !important;
    font-weight: 400 !important;
    font-size: 16px !important;
	text-decoration: none !important;
	justify-content: center;
	align-items: center;
	display: flex;
	opacity: 50%;
	transition: opacity .2s linear !important;
	margin: 0 20px;
	gap: 8px;
}

.galleries-list__header-link:hover {
	background-color: white !important;
    color: #203B4E !important;
	opacity: 100%;
	transition: opacity .2s linear !important;
}

.galleries-list__heading {
	display: flex;
	font-size: 27px;
	font-family: helvetica;
	font-weight: 600;
	padding: 0 20px;
}

.galleries-list__buttons {
	width: 100%;
	display: flex;
	position: relative;
	align-items: center;
	justify-content: flex-start;
	padding: 0 10px;
}

.galleries-list__expand {
	padding: 5px 35px !important;
    border-radius: 100px !important;
    border: 2px solid #203B4E !important;
    background-color: #203B4E !important;
    color: white !important;
    font-weight: 400 !important;
    font-size: 16px !important;
	margin: 0 10px !important;
}

.galleries-list__expand:hover {
	background-color: white !important;
    color: #203B4E !important;
}

.galleries-list__sort {
	padding: 5px 35px !important;
    border-radius: 100px !important;
    border: 2px solid #203B4E !important;
    background-color: #203B4E !important;
    color: white !important;
    font-weight: 400 !important;
    font-size: 16px !important;
	margin: 0 10px !important;
}

.galleries-list__sort:hover {
	background-color: white !important;
    color: #203B4E !important;
}

.galleries-list__wrapper {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	margin: 20px 0;
	justify-content: center;
	align-items: center;
}

.galleries-list__card {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 500px;
	height: 100%;
	background-color: white;
	margin: 0 20px 50px 20px;
	padding: 10px;
	border: 2px solid black;
	box-shadow: 0px 0px 15px gray;
}

.galleries-list__remove-button {
	padding: 5px 25px !important;
    border-radius: 100px !important;
    border: 2px solid #203B4E !important;
    background-color: white!important;
    color: #203B4E !important;
    font-size: 16px !important;
	text-decoration: none !important;
	justify-content: center;
	align-items: center;
	display: flex;
	position: absolute;
	right: 20px;
	top: 20px;
	opacity: 50%;
	transition: opacity .2s linear !important;
}

.galleries-list__remove-button:hover {
	background-color: white !important;
    color: #203B4E !important;
	opacity: 100%;
	transition: opacity .2s linear !important;
}

.galleries-list__edit-button {
	padding: 5px 25px !important;
    border-radius: 100px !important;
    border: 2px solid #203B4E !important;
    background-color: white!important;
    color: #203B4E !important;
    font-weight: 400 !important;
    font-size: 16px !important;
	text-decoration: none !important;
	justify-content: center;
	align-items: center;
	display: flex;
	position: absolute;
	right: 20px;
	top: 20px;
	opacity: 50%;
	transition: opacity .2s linear !important;
}

.galleries-list__edit-button:hover {
	background-color: white !important;
    color: #203B4E !important;
	opacity: 100%;
	transition: opacity .2s linear !important;
}

.galleries-list__image {
	height: 300px !important;
	object-fit: contain !important;
}

.galleries-list__expand-kinship {
	padding: 5px 25px !important;
    border-radius: 100px !important;
    border: 2px solid #203B4E !important;
    background-color: white!important;
    color: #203B4E !important;
    font-weight: 400 !important;
    font-size: 16px !important;
	text-decoration: none !important;
	justify-content: center;
	align-items: center;
	display: flex;
	position: absolute;
	bottom: 70px;
	right: 20px;
	opacity: 50%;
	transition: opacity .2s linear !important;
}
.galleries-list__expand-kinship:hover {
	background-color: white !important;
    color: #203B4E !important;
	opacity: 100%;
	transition: opacity .2s linear !important;
}
.galleries-list__expand-kinship--is-expanded {
	z-index: 100;
	bottom: 320px;
	padding: none !important;
	width: 40px !important;
	color: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	opacity: 100% !important;
}
.galleries-list__expand-kinship--is-expanded::before,
.galleries-list__expand-kinship--is-expanded::after {
	content: '' !important;
	display: flex;
	position: absolute;
	height: 40px !important;
	width: 3px !important;
	right: 20px;
	top: -10px;
	background-color: #203B4E !important;
}
.galleries-list__expand-kinship--is-expanded::before {
	transform: rotate(45deg) !important;
}
.galleries-list__expand-kinship--is-expanded::after {
	transform: rotate(-45deg) !important;
}
.galleries-list__expand-kinship--is-expanded:hover {
	color: transparent !important;
	background-color: transparent !important;
}
.galleries-list__expand-kinship--is-expanded:focus-within {
	border: none !important;
	outline: none !important;
}

.galleries-list__kinship {
	display: none;
}

.galleries-list__kinship--is-expanded {
	display: flex;
	height: auto;
	position: absolute;
	bottom: 0;
	right: 0;
	height: 100%;
	width: 100%;
	background-color: white;
	flex-direction: column;
	padding-top: 50px;
	overflow-y: scroll;
}


.galleries-list__kinship--is-expanded::-webkit-scrollbar {
	width: 3.5px;
}

.galleries-list__kinship--is-expanded::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.galleries-list__kinship--is-expanded::-webkit-scrollbar-thumb {
	background: var(--item);
}

.galleries-list__kinship-item {
	display: flex;
	gap: 5px;
	background-color: transparent;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	position: relative;
	padding: 15px 15px;
	font-weight: 600;
    font-size: 16px;
}

.galleries-list__kinship-profile:not(a) {
	opacity: 50%;
	cursor: not-allowed;
}

.galleries-list__kinship-profile:not(a):hover {
	background-color: var(--background);
	color: var(--item);
}

.galleries-list__kinship-profile {
	display: flex;
	right: 20px;
	cursor: pointer;
	padding: 5px 10px;
    border-radius: 100px;
    border: 2px solid #203B4E;
    background-color: white;
    color: #203B4E;
    font-weight: 400;
    font-size: 15px;
	text-decoration: none !important;
}

.galleries-list__kinship-profile:hover {
	background-color: #203B4E;
    color: white;
}

.galleries-list__kinship-name {
	display: flex;
	flex-wrap: wrap;
	font-weight: 600;
	font-size: 16px;
	margin: 0 !important;
	width: min-content;
}

.galleries-list__kinship-name-chank {
	max-width: 117px;
	overflow-x: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.galleries-list__kinship-chank {
	font-weight: 600;
	font-size: 16px;
	opacity: 50%;
	width: 100%;
	max-width: 117px;
	text-overflow: ellipsis;
	overflow-x: hidden;
	white-space: nowrap;
}

.galleries-list__name {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	text-transform: uppercase;
	text-align: center;
	height: 50px;
	font-size: 20px;
}

.galleries-list__name:hover,
.galleries-list__name:focus {
	text-decoration: underline !important;
}

@media screen and (min-width: 500px) {
	.galleries-list__kinship-name-chank {
		max-width: fit-content;
		overflow-x: clip;
	}

	.galleries-list__kinship-chank {
		max-width: fit-content;
		text-overflow: clip;
	}
	
	.galleries-list__kinship-profile {
		padding: 5px 25px;
		font-size: 16px;
	}
	
	.galleries-list__kinship-item {
		padding: 15px 20px;
	}
}

@media screen and (min-width: 425px) {
	.galleries-list__kinship-item {
	justify-content: space-between;
	}
}

@media screen and (min-width: 1025px) and (max-width: 1366) {
	.galleries-list__heading {
	display: flex;
	font-size: 23px;
	font-family: helvetica;
	font-weight: 600;
	padding: 0 20px;
}
}