/* Photo Gallery Styles */

#photo-gallery-pagination {
  display: flex;
	flex-direction:row;
  justify-content: center;
  margin: 20px auto;
}

.photo-gallery-page-btn {
 background: none no-repeat scroll left top #396d7a;
    border: 1px solid #396d7a;
    border-radius: 0;
    color: #fff;
    filter: none !important;
    float: left;
    font-size: 14px;
    font-weight: 400;
    height: 30px !important;
    line-height: 24px;
    margin: 0 10px 0 0;
    padding: 2px 0;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 24px;
	cursor: pointer;
}

/* Disabled Buttons */
.photo-gallery-page-btn.disabled {
    color: #777 !important;
    text-decoration: none !important;
    cursor: default !important;
	background: none;
}


.photo-gallery-page-btn.previous {
  	border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    margin-left: 0;
	width: 10%;
}

.photo-gallery-page-btn.next {
  	border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
	width: 10%;
}

html[lang="ar"] .photo-gallery-page-btn.previous{
	border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
	border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}


html[lang="ar"] .photo-gallery-page-btn.next{
	border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
	border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}






@media (max-width: 550px) {
	.photo-gallery-page-btn{
		font-size: 1em !important;
	}
}

/* Photo Gallery Item */
.ajax-post-item {
  display: flex;
  background: #f5f5f5;
  padding: 12px 0;
  width: 100%;
  clear: both;
  overflow: hidden;
}

.ajax-post-item:nth-child(2n) {
  background: #e9e9e9;
}

.ajax-photo-gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ajax-photo-gallery-carousel-slide {
  display: none;
  width: 100%;
}

.ajax-photo-gallery-carousel-slide:first-child {
  display: block;
}

.ajax-photo-gallery-carousel-slide img {
  width: 100%;
  height: auto;
}

.ajax-post-content {
  position: relative;
  padding: 15px;
}

.ajax-album-name {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.ajax-photo-count {
  font-size: 14px;
  color: #555;
}

.ajax-post-title a {
  text-decoration: none;
  text-transform: capitalize;
  color: #396d7a;
}

.ajax-post-title {
  margin-bottom: 10px;
  margin-top: 0;
}

.ajax-post-excerpt {
  margin: 5px 0;
  font-size: 1.5rem;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  .ajax-post-item {
    display: block;
    margin: 3%;
  }

  .ajax-photo-gallery-carousel {
    width: 100%;
    margin-bottom: 10px;
  }

  .ajax-post-title {
    margin-bottom: 10px;
    line-height: 1.2;
    font-size: 22px;
  }

  .ajax-photo-count {
    margin-top: 10px;
    display: block;
  }
}


#photo-gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 28px;
    justify-content: center;
    padding: 20px;
    max-width: 1000px; /* Limits width to prevent excessive stretching */
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.photo-gallery-album {
    display: flex
;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 450px;
    width: 100%;
    background-color: #f3f3f3;
    border-bottom: 2px solid #c28b27;
    border-top: 1px solid #396d7a;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 8px 15px;
    cursor: pointer;
    justify-content: center;
}

.photo-album-thumbnail {
    width: 100%;
    height: 192px;
    align-items: center;
    overflow: hidden;
}

.photo-album-thumbnail img {
    height: 192px !important;
    width: 100%;
    margin-bottom: 10px;
    vertical-align: middle;
}

.photo-album-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.pull-left-content{
	float: left;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 235px;
    text-rendering: none;
    -ms-text-overflow: ellipsis;
    word-wrap: normal !important;
	margin-top: 10px;
	color: #343434;
    font-size: 1.4rem;
    line-height: 1.42857143;
}

.pull-left-content strong{
    font-weight: 700;
}

.photo-album-title {
	-webkit-text-stroke: 1px transparent;
    -o-text-stroke: 1px transparent;
    -webkit-font-smoothing: antialiased;
}

.photo-album-count {
	float: right;
    margin-top: 10px;
	color: #343434;
    font-size: 1.4rem;
    line-height: 1.42857143;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #photo-gallery-container {
        grid-template-columns: 1fr; /* Stack albums on smaller screens */
    }
}



